You need to have node
and npm
installed on your system. Node version should be 20 or more.
In the backend folder, there is an .env.example
. Rename this to just .env
and update DATABASE_URL
.
Note:
DATABASE_URL
should be in this formatDATABASE_URL="postgresql://USERNAME:PASSWORD@HOSTNAME:PORT"
.
In the frontend folder, there is an .env.example
. Rename this to just .env
and update VITE_BACKEND_URL
.
Note:
VITE_BACKEND_URL
is the Backend server URL.
Navigate to backend folder and run the following:
npm install
When running for the first time, you need to run database migrations so to do so navigate to backend folder and run the following:
npx prisma migrate deploy
Once the dependencies are installed then run the following:
npm run start
This will start the backend server at port 5000
.
Navigate to frontend folder and run the following:
npm install
Once the dependencies are installed then run the following:
npm run dev -- --host
This will start the frontend server at port 4000
.