A progressive Node.js framework for building efficient and scalable server-side applications.
This project test the Nest framework TypeScript using TypeOrm Object Relational Mapping.
This project uses Docker
$ docker compose -f docker-compose-dev.yaml up -d --build
$ docker compose -f docker-compose.yaml start
$ docker compose -f docker-compose.yaml stop
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Method: GET
- URL:
http://localhost:3000/users
- Method: GET
- URL:
http://localhost:3000/users/{{id}}
où{{id}}
est un nombre entier
- Method: DELETE
- URL:
http://localhost:3000/users/{{id}}
où{{id}}
est un nombre entier
- Method: POST
- Header:
Content-type: application/json
- URL
http://localhost:3000/users
- BODY:
{
"firstname": "François",
"lastname":"Laconique",
"username":"francois.laconique",
"email":"[email protected]"
}
- Method: PUT
- URL:
http://localhost:3000/users/{{id}}
où{{id}}
est un nombre entier - Header:
Content-type: application/json
- BODY:
{
"username":"francois.laconique2",
"email":"[email protected]"
}
- Method: GET
- URL
http://localhost:3000/keywords
- Method: GET
- URL
http://localhost:3000/keyword{{id}}
où{{id}}
est un nombre entier
- Method: POST
- Header:
Content-type: application/json
- URL
http://localhost:3000/keyword
- BODY
{
"label": "Astronaute"
}
- Method: PUT
- Header:
Content-type: application/json
- URL
http://localhost:3000/keyword/{{id}}
où{{id}}
est un nombre entier - BODY
{
"label": "Spacionaute"
}
- Method: DELETE
- URL
http://localhost:3000/keyword/{{id}}
où{{id}}
est un nombre entier
- Method: GET
- URL
http://localhost:3000/forum
- Method: GET
- URL:
http://localhost:3000/forum/{{id}}
- Method: DELETE
- URL
http://localhost:3000/forum/{{id}}
- Method: POST
- Header:
Content-type: application/json
- URL:
http://localhost:3000/forum
- BODY:
{
"parent": null,
"title": "premier sujet",
"message": "salut à tous, j'ai un problème, je suis le premier homme sur la lune",
"user": 1,
"keywords": [{
"id": 1,
}, {
"id": 2,
}, {
"id": 3,
}]
}
- Method: POST
- Header:
Content-type: application/json
- URL:
http://localhost:3000/forum
- BODY:
{
"parent": 1,
"title": "Re: premier sujet",
"message": "salut à toi! mais non, tu n'es pas tout seul ! moi aussi, je suis sur la lune !",
"user": 2,
"keywords": [{
"id": 1,
"label": "Satellite"
}, {
"id": 2,
"label": "Astronaute"
}, {
"id": 4,
"label": "Rencontre"
}]
}
- Method: PUT
- URL:
http://localhost:3000/forum/{{id}}
- Header:
Content-type: application/json
- BODY:
{
"title": "premier sujet modifié",
"message": "salut à tous, j'ai un problème, je suis le premier homme sur mars."
}
- Website - Veonum Internet site
- Author - Xavier Ottolini
- Nest is MIT licensed.
- TypeOrm is MIT License