Skip to content

AIM3r4j/media-api

Repository files navigation

Media API

This is an API for showing details and detailed list of movies and TV shows. It is built with NestJS, GraphQL, TypeScript, NodeJS, ExpressJS, and MongoDB.

Documentation

You can go to '/graphql' route after starting the app to get documentation and input/output schemas.

Getting Started

To run the API on your local machine, follow these steps:

Clone the repository to your local machine

git clone https://github.com/aim3r4j/media-api.git

Navigate inside the folder

cd media-api

Install all the dependecies

npm ci

Set the environment variables in a .env file according to the .env.example file & Run the dev script to start the application in development environment

npm run start:dev

The app will now be running on localhost:3000.

OR

Build and Run the docker container for development

docker-compose -f docker-compose.dev.yml up --build

The app will then be running on localhost:4000.

Security Implementations

Stateless Authentication:

JWT-based authentication is used, providing a secure and stateless approach to authenticate API requests.

Cookie-based Authentication:

JWT tokens are stored in cookies, ensuring secure transmission and simplified handling of authentication in subsequent requests.

Environment Variables:

Sensitive configuration details, such as database credentials and authentication secrets, are stored as environment variables to prevent accidental exposure.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published