Skip to content

smashingboxes/web-boilerplate

Repository files navigation

Stories in Ready

web-boilerplate

A template for new front-end projects.
Waffle.io Board

Info

  • Yarn 1.3.2
  • Node 8.9.4

Using

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.

  1. Clone the repo
git clone https://github.com/smashingboxes/web-boilerplate
  1. Move web-boilerplate to your project name
mv web-boilerplate *PROJECT_NAME*
cd *PROJECT_NAME*
  1. Delete the .git folder inside it
rm -rf .git
  1. Run a new git init
git init
  1. Change the package.json file to information about your project
  2. Delete this README and create a new one for your project
  3. Create a new branch titled initial-setup
git checkout -b initial-setup
  1. 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
  1. Create a pull request

Commands

Run the server with:

yarn start

Run your tests with:

yarn test

Run a build with:

yarn build

Docker Commands

Docker is not needed to run the boilerplate

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