This is the source for ThinkingInReact.xyz. Codebase is a bit messy so it is suggested that you not use this as a boilerplate for now at least. Feel free to rip out any code you like though and use it in your projects.
First rename .env_example
to .env and change the values to your own.
Then install the dependencies:
$ npm install .
Run:
$ npm run start:dev
This will boot up webpack and webpack-dev-middleware and manage it through node-foreman
There are three steps;
- Make sure you environment has the correct environment variables (look to env for this)
- Compile the server using
$ npm run dist && npm run webpack:server
- Finally run it
$ node server.js
If you are on modulus you can just run the following:
$ npm run deploy