- Create an .env file in
/backend/
and/frontend/
. - Write the following environment configuration in these files:
Config key | Description | Fallback value |
---|---|---|
BACKEND | ||
REQUEST_SECRET | Some string expected from the backend API for extra security. | |
APP_PORT | HTTP port of the application. | 8000 |
FRONTEND | ||
VITE_BACKEND_URL | The host where the backend was deployed and also the subroutes of it. Don't put a slash at the end of the string. Example: http://localhost:8000/api/v1/web-scraper |
|
VITE_REQUEST_SECRET | Some string expected from the backend API for extra security. |
cd
into/backend/
, runnpm i; npm run start
.- If this throws an error, you don't have chromium installed. Puppeteer needs it. Install it and try
npm i
again. cd
into/frontend/
, runnpm i; npm run dev
.- You should be good now and the project should work. Have fun!