A template for new front-end projects.
Waffle.io Board
- Yarn 1.3.2
- Node 8.9.4
NOTE: There are some additional steps for setting up a new project that are documented here. The steps documented here are just the ones needed to set up the code for the repo.
- Clone the repo
git clone https://github.com/smashingboxes/web-boilerplate
- Move
web-boilerplate
to your project name
mv web-boilerplate *PROJECT_NAME*
cd *PROJECT_NAME*
- Delete the .git folder inside it
rm -rf .git
- Run a new git init
git init
- Change the package.json file to information about your project
- Delete this README and create a new one for your project
- Create a new branch titled
initial-setup
git checkout -b initial-setup
- Commit all the files as an initial commit and push to your origin
git remote set-url origin https://github.com/smashingboxes/*PROJECT_NAME*.git
git add .
git commit -m "Initial commit"
git push origin initial-setup
Run the server with:
yarn start
Run your tests with:
yarn test
Run a build with:
yarn build
Build and start the server:
docker-compose up --build
Run your tests with:
docker-compose exec web yarn test
Run a build with:
docker-compose exec web yarn build
If your terminal closes run:
docker-compose logs --follow