Minimalistic boilerplate to bootstrap a general purpose PWA
- Run
npm i
to install all dependencies.
- Run
npm run addUser -- <username> <password>
to create a user (necessary for login). - Make
.env
file using.env.example
as a guide.
npm run
dev
This mode runs hot module reloading on React.js frontend (as a server) on port 3000, and Nodemon with server watching on Express backend on port 5000. The React.js development server proxies all API calls to backend. It does not check for authenticated sessions before rendering.
npm run
prod
This mode builds React.js frontend using Webpack and then serves it on an Express server running on port 80.
Put together by Jose Naranjo.