This is the server for the lie-detection-survey project. It is meant for the lie-detection-survey-client
Paired with the client, the server does the following:
- Logs admin into their account
- Allows admin to create, edit, and delete survey prompts
- Allows admin to download survey responses as a CSV file
- Creates a survey participant and saves their responses to each prompt
git clone https://github.com/mir-mirsodikov/lie-detection-survey-client
npm install
Variable Name | Description |
---|---|
PORT | Port to run the server on |
DATABASE_URL | URL to the Postgres database |
This project utilizes prisma
and therefore requires an initial setup.
npx prisma push
npx prisma generate
Command | Description |
---|---|
npm run build |
Build the server for production |
npm start |
Run the server in production mode |