Saba-Var / Movie-Quotes-api

API for Movie Quotes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API for Movie Quotes

Using the API you can do CRUD operations on quotes, movies and application users.

Table of Contents

Prerequisites

  • Node JS @12.X and up

  • npm @6 and up

Tech Stack

Getting Started

1. First of all you need to clone repository from github:

git clone https://github.com/Saba-Var/Movie-Quotes-api.git

2. Navigate to the repository

cd movie-quotes-api-Var-saba/

3. Next step requires install all the dependencies

npm install

or

yarn install

4. Copy .env

cp .env.example .env

5. If you want you can also change default configuration of .env file and connect to mongodb

MONGO_DATABASE=movieQuotes
MONGO_PROTOCOL=mongodb
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_PASSWORD=
MONGO_USER=

SERVER_PORT=4444

FRONTEND_URI=http://localhost:3000
EMAIL_SENDER=sender@gmail.com

SENGRID_API_KEY=sendgrid-api-key
JWT_SECRET=jwt-secret

6. For the first time before run the API run following command:

npx tsc

7. After that you can run Movie Quotes API from terminal:

npm run dev

To see swagger documentation visit localhost:4444/api-docs

Project Structure

├─── .github
├─── public
├─── readme
├─── src
│    ├── config
│    ├── controllers
│    ├── middlewares
│    ├── models
│    ├── routes
│    ├── schemas
│    ├── utils
│    └── views
- .env
- .env.example
- .eslintrc.json
- .gitignore
- .prettierrc.json
- babel.config.json
- package-lock.json
- package.json
- README.md
- tsconfig.json

Resources

About

API for Movie Quotes


Languages

Language:TypeScript 96.3%Language:HTML 3.7%