- Add
.env
file in root directory with next contentPORT=
port on which you run server (be aware that front-end runs on 3000)POSTGRES_USER=
login for PostgreSQL userPOSTGRES_PASSWORD=
password for PostgreSQL userPOSTGRES_DB=
database name in PostgreSQL (be aware that it should be created in any convenient way for you)
npm install
(Install packages to start the app)npm run dev
(Start development server)- Run front-end part of this app (You can do it here)
npm run build
npm run start