Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/de3ph/bookstore-api

Bookstore API
https://github.com/de3ph/bookstore-api

api-testing authentication bcrypt docker eslint mongodb mongoose nestjs passport-jwt passport-local passportjs prettier swagger testing typescript unit-test

Last synced: about 1 month ago
JSON representation

Bookstore API

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


## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Installation

```bash
$ npm install
```

## .env

Create .env file in the root directory of the project. .env file should include these properties:
```
MONGO_CONNECTION_STRING=XXX
MONGO_DATABASE_NAME=XXX
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

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

## Docker
In order to use Docker container, you should provide same .env properties.
```bash

# create .env file and define variables.
$ touch .env.docker

# run
$ docker-compose up
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

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

## API Documentation

Swagger API documentation is available on `http://localhost:3000/api` route.

## ToDo
- [ ] More Detailed Swagger Documentation
- [ ] Unit Test
- [ ] Integration Test
- [ ] E2E Test
- [x] Dockerize
- [ ] Front-end??

## 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).

## License

Nest is [MIT licensed](LICENSE).