This project is a challenge to create a REST-API using Express and Prisma ORM.
- Nodejs v14.17.6
- Express
- Typescript
- Prisma
- Postgres
- Heroku
- SendGrid
- Swagger
- Linters
- Prettier
- VS code
- npm run test
- npm run test:coverage
To get a local copy up and running follow these simple steps:
- Clone it using git command
git clone <link>
. - Follow 'Setup' steps.
- Open the terminal.
- On the terminal navigate to the project directory using
cd REST-API-Nerdery-Challenge
. - Install dependencies using:
npm install
. - Configure the environment
DATABASE_URL=
SENDGRID_API_KEY=
JWT_SECRET=
- Migrate the database:
npx prisma migrate dev --name init
. - Migrate the database:
npx prisma db seed
.
- Open the terminal and go to the directory.
- Start the application :
npm run dev
. - Open the browser and go to :
http://localhost:3000/
to see the documentation - Optional: use the live version link
- Import ApiBlog.postman_collection.json in postman
- Test the diferents endpoints.
👤 Patrick Lazo
- GitHub: patrick100
👤 Kenvin Cotrina
- GitHub: kcotrinam