diff --git a/README.md b/README.md index 059f412..9a480d1 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,18 @@ # Quickstart +- Clone repository + +```shell +git clone https://git.cubetiqs.com/CUBETIQ/express-nodejs-app.git --recurse-submodules --remote-submodules +``` + +- Install + +```shell +yarn +``` + - Start ```shell @@ -91,6 +103,20 @@ import HomeController from "./home.controller" export const controllers = [IndexController, PersonController, HomeController] ``` +- Output registered routes + +```ts +┌─────────┬──────────────────────┬─────────────────────────────────┐ +│ (index) │ api │ handler │ +├─────────┼──────────────────────┼─────────────────────────────────┤ +│ 0 │ 'GET /hello' │ 'IndexController.index' │ +│ 1 │ 'GET /hello/:name' │ 'IndexController.hello' │ +│ 2 │ 'GET /person' │ 'PersonController.getPersons' │ +│ 3 │ 'POST /person' │ 'PersonController.createPerson' │ +│ 4 │ 'DELETE /person/:id' │ 'PersonController.deletePerson' │ +└─────────┴──────────────────────┴─────────────────────────────────┘ +``` + ### Contributors - Sambo Chea