Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daaaiii/mks-backend
https://github.com/daaaiii/mks-backend
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/daaaiii/mks-backend
- Owner: Daaaiii
- Created: 2024-05-20T21:28:21.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-05-21T02:43:57.000Z (6 months ago)
- Last Synced: 2024-05-22T01:14:56.694Z (6 months ago)
- Language: TypeScript
- Size: 327 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
A backend project for a movie catalog using NestJS, TypeScript, Docker, Redis, Swagger, Jest, ESLint, Prettier, Husky, Lint-staged, TypeORM, and PostgreSQL.## Table of Contents
- [Overview](#overview)
- [Installation](#installation)
- [Configuration](#configuration)
- [API Documentation](#api-documentation)
- [Contributing](#contributing)
- [License](#license)## Overview
This project is a backend for a movie catalog that allows users to register, authenticate, search for movies, and save their favorite movies. It is developed using the NestJS framework with TypeScript and several other tools to ensure code quality and scalability.
## Installation
To install and run the project locally, follow the steps below:
### Prerequisites
- Node.js (version 20 or higher)
- NPM or Yarn
- Docker and Docker Compose### Steps
1. Clone the repository:! The project is using git submodules, therefore need use the "--recurse-submodules"
```bash
git clone --recurse-submodules https://github.com/Daaaiii/mks-backend-challenge.gitcd mks-backend
```
2. Install the dependencies:
```bash
$ npm install
```3. Create a '.env' file (use the .env-example to see which variables need be created):
```
cp .env.example .env
```4. Running the app:
```bash
# Running docker
$ docker compose up -d# Applying migrations
$ npm run migrate:up# Development mode
$ npm run dev
```## API Documentation
The API documentation is available via Swagger. After running the application, access:
```
http://localhost:3000/doc
```
## ContributingContributions are welcome! To contribute, follow these steps:
Fork the project.
Create a branch for your feature (git checkout -b feature/new-feature).
Commit your changes (git commit -am 'Add new feature').
Push to the branch (git push origin feature/new-feature).
Create a new Pull Request.## License
This project is licensed under the MIT License - see the LICENSE file for details.