Helen's Student Corner
This starter can be used in two different ways:
- Separate Frontend and API server.
- Both Frontend and API served through single node server in production.
Installation
- clone this repository
npm run app-install
Commands
-
npm run start
: Starts both frontend and API server as separate live reload server. Frontend usesng serve
underneath and API server usesnodemon
for live reload. -
npm run build
: Createsdist
folder in bothclient
andserver
folders. -
npm run start:prod
: Builds theclient
andserver
projects and starts it withNODE_ENV=production
. This by default setsexpress.static
toclient/dist
to use this node server to serve frontend also.