Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavel-tyan/publication-api
Backend for posting publication and commenting them
https://github.com/pavel-tyan/publication-api
bcryptjs jwt layered-architecture mongo nestjs rest-api
Last synced: 15 days ago
JSON representation
Backend for posting publication and commenting them
- Host: GitHub
- URL: https://github.com/pavel-tyan/publication-api
- Owner: Pavel-Tyan
- Created: 2024-07-05T07:44:08.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T15:22:04.000Z (4 months ago)
- Last Synced: 2024-10-10T05:42:41.292Z (about 1 month ago)
- Topics: bcryptjs, jwt, layered-architecture, mongo, nestjs, rest-api
- Language: TypeScript
- Homepage:
- Size: 586 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[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.
## Run with Docker
```bash
$ docker build -t post-api .$ docker-compose up -d
```## Run without Docker
To run app itself without docker, you need to change field MONGO_HOST from 'mongo' to 127.0.0.1 in .env file and run only database container in docker-compose file. You also need this, if you want run tests.
if you want to run both through docker, change MONGO_HOST to 'mongo'
```bash
# install dependencies
$ npm install# run app
$ npm run start
```## Test
```bash
# unit tests
$ npm run test# e2e tests
$ npm run test:e2e# test coverage
$ npm run test:cov
```## Swagger
Open http://localhost:3000/docs