├── .env.example ├── .env.test.example ├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── Insomnia.json ├── README.md ├── db └── migrations │ ├── 20230130201442_create-transactions.ts │ └── 20230131174143_add-session-id-to-transactions.ts ├── knexfile.ts ├── package.json ├── src ├── @types │ └── knex.d.ts ├── app.ts ├── database.ts ├── env │ └── index.ts ├── middlewares │ └── check-session-id-exists.ts ├── routes │ └── transactions.ts └── server.ts ├── test └── transactions.spec.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/.env.example -------------------------------------------------------------------------------- /.env.test.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/.env.test.example -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/.gitignore -------------------------------------------------------------------------------- /Insomnia.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/Insomnia.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /db/migrations/20230130201442_create-transactions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/db/migrations/20230130201442_create-transactions.ts -------------------------------------------------------------------------------- /db/migrations/20230131174143_add-session-id-to-transactions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/db/migrations/20230131174143_add-session-id-to-transactions.ts -------------------------------------------------------------------------------- /knexfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/knexfile.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /src/@types/knex.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/@types/knex.d.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/database.ts -------------------------------------------------------------------------------- /src/env/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/env/index.ts -------------------------------------------------------------------------------- /src/middlewares/check-session-id-exists.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/middlewares/check-session-id-exists.ts -------------------------------------------------------------------------------- /src/routes/transactions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/routes/transactions.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/src/server.ts -------------------------------------------------------------------------------- /test/transactions.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/test/transactions.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocketseat-education/ignite-nodejs-02-api-rest-nodejs/HEAD/tsconfig.json --------------------------------------------------------------------------------