A boilerplate with only the bare minimum of dependencies to make the following technologies work together:
Use npm run dev:server
or simply npm run dev
to start the development server. Since we are using SSR, with the previous scripts you can start working on client and server, but if you prefer only work on the client, then use npm run dev:client
.
Client start on port 3000 and server on port 4000.
The following build and start the proyect:
npm run build
npm start
Also you can just run npm run serve
, witch combine the previous scripts.
Configure docker-compose.yml file to suit your needs. Exposed port is 4000, but feel free to change it.