This is a simple starter to get you up and running for React projects. This is intended to provide:
Install dependencies: $ npm install
or $ yarn
Fire up a development server: $ npm run dev
Once the server is running, you can visit http://localhost:3000/
frontend/containers/AppContainer.js
frontend/assets/stylesheets/base.scss
server.js
backend/routes.js
http://localhost:3000/api
To build your production assets and run the server:
$ npm start
This app is set up for deployment to Heroku!
This assumes you have already have a Heroku account and have the Heroku CLI installed
$ heroku login
$ heroku create -a name-of-your-app
$ git push heroku master
$ heroku open
Heroku will follow the build
command in your package.json
and compile assets with webpack.prod.config.js
. It runs the Express web server in server.js
.
If you're unfamiliar with Heroku deployment (or just need a refresher), they have a really great walkthrough here.
Remix this 🎤
Show
at the top to preview your app!