An open API service indexing awesome lists of open source software.

https://github.com/librity/nc_nestjs

Nomad Coders - NestJS API - A movies API made with NestJS.
https://github.com/librity/nc_nestjs

backend nestjs nomad-coders

Last synced: 3 months ago
JSON representation

Nomad Coders - NestJS API - A movies API made with NestJS.

Awesome Lists containing this project

README

        


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.



NPM Version
Package License
NPM Downloads
CircleCI
Coverage
Discord
Backers on Open Collective
Sponsors on Open Collective

Support us


## Table of Contents

- [About](#about)
- [Endpoints](#endpoints)
- [Installation](#installation)
- [Running the app](#running)
- [Tests](#tests)
- [Nest commands](#commands)
- [Support](#support)
- [License](#license)
- [Libs](#libs)
- [Docs](#docs)
- [Resources](#resources)

## About

A movies API made with NestJS.

- [Take the course too!](https://nomadcoders.co/nestjs-fundamentals/lobby)
- [Certificate of Completion](https://nomadcoders.co/certs/faf0e59c-5462-4d9a-90c9-e154a75528eb)

## Endpoints

`MoviesController`

- `GET` http://localhost:3000/movies
- `GET` http://localhost:3000/movies?year=year
- `GET` http://localhost:3000/movies/:id
- `POST` http://localhost:3000/movies
- `PATCH` http://localhost:3000/movies/:id
- `DELETE` http://localhost:3000/movies/:id

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Tests

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Bash commands

```bash
# Get all commands
$ nest

# Generate a new controller
$ nest generate controller
$ nest g co

# Generate a new service
$ nest generate service
$ nest g s

# Generate a new module
$ nest generate module
$ nest g mo

# Lint project
$ npm run lint
```

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

### Stay in touch

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](LICENSE).

## Libs

- https://github.com/nestjs/nest
- https://github.com/fastify/fastify
- https://github.com/typestack/class-validator
- https://github.com/typestack/class-transformer
- https://github.com/nestjs/mapped-types

## Docs

- https://docs.nestjs.com/
- https://www.typescriptlang.org/docs/handbook/decorators.html#introduction

## Resources

- https://en.wikipedia.org/wiki/Single-responsibility_principle
- https://stackoverflow.com/questions/54979729/howto-get-req-user-in-services-in-nest-js