npm install
Backend:
Create .env
file in project's root directory. It should have the following variables:
NODE_ENV= either development or production
PORT= port on which Express app will be served
API_URL= full URL of Express app (for adding proper news image path)
DB_URL= PostgreSQL database URL
FEED_URL= RSS feed's URL
Frontend:
Go to src/environment/index.ts
, and replace API_URL
with the same URL as in .env
's API_URL
npm run serve
For backend:
npm run serve:backend
npm run build
npm run lint