Skip to content
Snippets Groups Projects
README.md 1.51 KiB
Newer Older
Bastien DUMONT's avatar
Bastien DUMONT committed
# Res'In Serveur

L'appplication est basée sur le framework [Nest](https://nestjs.com). Celle-ci utilise une BDD mongodb.
Hugo SUBTIL's avatar
Hugo SUBTIL committed

## Installation

### Prérequis

Windows: avoir Docker Desktop installé
Linux: avoir docker et docker-compose installé

Créer un ficher .env sur le modèle du ficher `template.env` et remplir les différentes variables.

Bastien DUMONT's avatar
Bastien DUMONT committed
### Installation
Bastien DUMONT's avatar
Bastien DUMONT committed
Suivre le [wiki d'installation disponible sur le client](https://forge.grandlyon.com/web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client/-/wikis/Installation-projet-RESIN)
Hugo SUBTIL's avatar
Hugo SUBTIL committed

## Running the app

### Base de donnée

```bash
$ docker-compose up -d database-ram
$ docker-compose up -d mongo-express
```

### Application

Hugo SUBTIL's avatar
Hugo SUBTIL committed
```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

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

Bastien DUMONT's avatar
Bastien DUMONT committed
### Liens
Bastien DUMONT's avatar
Bastien DUMONT committed
- [Swagger](http://localhost:3000/api/doc)
- [Mongo Express](http://localhost:8081)
Hugo SUBTIL's avatar
Hugo SUBTIL committed
A documentation is generated with compodoc in addition of the existing documentation on the wiki.
Hugo SUBTIL's avatar
Hugo SUBTIL committed
```sh
npm run doc:serve
```
Hugo SUBTIL's avatar
Hugo SUBTIL committed
You can now visualize it at : `localhost:8080`

Hugo SUBTIL's avatar
Hugo SUBTIL committed
## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

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

## 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](https://github.com/nestjs/nest/blob/master/LICENSE).