The objective of this project is the development of a RESTful API to facilitate the management of dog centers.
It was built using NestJS framework, which allows building efficient, reliable and scalable server-side applications.
-
Bordeaux Ynov Campus IT department :
- Mathieu CHAMBAUD - Master2 Expert in Web Development
- Dorian FRANÇAIS - Master2 Expert in Web Development
- Yann LE COZ - Master2 Expert in Web Development
- Mongoose - An ORM for MongoDB object modeling for Node.js.
- NestJS - A progressive Node.js framework.
- Stripe - An online payment processing platform.
- Vercel - A hosting service to deploy easily any frontend app.
- Visual Studio Code - Code editor.
You can install the project by cloning this repository:
git clone https://github.com/ianlcz/gestidogs-api-server.git
First of all, if you have just cloned the repository you have to install the project dependencies with the command npm install
in the root folder.
On Linux and Mac, type this command openssl rand -hex 32
or go to https://generate-secret.now.sh/32.
You must copy the .env.example
file in the root folder of the application and replace <GESTIDOGS_MONGO_URI>
, <GESTIDOGS_JWT_ACCESS_SECRET>
, <GESTIDOGS_JWT_REFRESH_SECRET>
and <STRIPE_SECRET_API_KEY>
with your own :
GESTIDOGS_MONGO_URI=<GESTIDOGS_MONGO_URI>
JWT_ACCESS_SECRET=<GESTIDOGS_JWT_ACCESS_SECRET>
JWT_REFRESH_SECRET=<GESTIDOGS_JWT_REFRESH_SECRET>
STRIPE_API_KEY=<STRIPE_SECRET_API_KEY>
# development mode
$ npm run start
# watch mode
$ npm run start:dev
Then you can go to your browser at http://localhost:8080/docs to see the Swagger documentation of the GestiDogs API Server.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
You can launch the API with Docker by following the Docker commands documentation.
This project is licensed under the MIT License - see the LICENSE file for details.