Good things get created through collaboration
Looking to collaborate with peers to create collage art? Welcome to Collabalage
!
For a demo, visit our deployed version:
https://collaballage.herokuapp.com/
- Run the following commands:
fork to your github account
git clone collabalage https://github.com/Team-Lilith/capstone.git
Now that you've got the code, follow these steps to get acclimated:
npm install
Running npm run start-dev
will make great things happen!
If you want to run the server and/or webpack
separately, you can also
npm run start-server
and npm run build-client
.
From there, just follow your bliss.
Your local copy of the application can be pushed up to Heroku at will, using our deployment script:
- Make sure that all your work is fully committed and merged into your master branch on Github.
- If you currently have an existing branch called "deploy", delete
it now (
git branch -d deploy
). We will use a dummy branch with the namedeploy
(see below), so and the script below will error if a branch with that name already exists. npm run deploy
_ this will cause the following commands to happen in order: _git checkout -b deploy
: checks out a new branch calleddeploy
. Note that the namedeploy
here is not magical, but it needs to match the name of the branch we specify when we push to ourheroku
remote. _webpack -p
: webpack will run in "production mode" _git add -f public/bundle.js public/bundle.js.map
: "force" add these files which are listed in.gitignore
. _git commit --allow-empty -m 'Deploying'
: create a commit, even if nothing changed _git push --force heroku deploy:master
: push your localdeploy
branch to themaster
branch onheroku
_git checkout master
: return to your master branch _git branch -D deploy
: remove the deploy branch
Now, you should be deployed!
Why do all of these steps? The big reason is because we don't want our
production server to be cluttered up with dev dependencies like
webpack
, but at the same time we don't want our development
git-tracking to be cluttered with production build files like
bundle.js
! By doing these steps, we make sure our development and
production environments both stay nice and clean.
- Happy Collaballaging!