If you don't have Node.js installed please visit NodeJS.org
Fork and clone repo
npm install
-
API Development Server
-
npm run dev-server
This will run the api server with nodemon on port 1337 (Allowing the server to auto refresh on save).
-
Web Development Server
-
npm run dev-web
-
Open a second terminal tab (Mac: cmd + t)
-
Navigate back to the root the repo
This will run the webpack development server with live reload. If you don't need an API server, you can simply just work with this.
Note: This development server uses a proxy to the node server (port 1337). To use any api routes from the node server just make sure to use '/api/something' in the request url, otherwise it will require the full url to make requests.
- Building
npm run build
This will place the bundle.js file into the public folder. Note: public/bundle.js and public/bundle.js.map are git ignored.
- Serving
npm start
Runs the server, serving index.html with bundle.js without the development enviroment.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D