- Description
- Installation Instructions
- Usage and Screenshots
- Technologies Used
- Dependencies and Credits
- Project Structure
RESTful API created as as a part of The Odin Project curriculum.
- Clone or fork this repo
- cd into the project root directory (where the README.md file is located)
- Run the following in your terminal
-
npm init -y npm install psql
-
CREATE DATABASE database_name; \c database_name \q
-
npx tsc --init npx prisma npx prisma init code .env
-
- In the .env file
-
NODE_ENV=development TEST_DATABASE_URL= DEV_DATABASE_URL= DATABASE_URL= SECRET_KEY=
-
code prisma/schema.prismanpm run dev^+cwill end the process
- After making updates to ./src/queries.ts you'll want to run this to recompile queries.js
npx tsc
Here's a brief description of how to use the app.
- Uses CORS to verify that the request is coming from a valid address
- @prisma/extension-accelerate
- @prisma/client
- bcryptjs
- cors
- dotenv
- express-validator
- jsonwebtoken
- pg
- @types/node
- supertest
- tsx
├──controllers/ # Controller files
├──db/ # Compiled queries.js file
├──prisma/ # Prisma models and migrations
├──public/ # Locally hosted image files
├──routes/ # Router files
├──src/ # Base queries.ts file
└──test/ # Test files