This application was developed to gain knowledge related to the new way of establishing a connection using TypeORM. Plus: The use of generic repositories is essential for working with the database.
A simple back-end simulation of a university website is performed, where you have the profile, subjects, rooms and specifications modules.
- Node.js
- Typescript
- Overnightjs
- Docker
- TypeORM
- IORedis
- Postgres
Before building the project, set up the credentials required to establish a connection to Postgres.
PG_HOST
PG_PORT
= 5432
PG_USER
PG_PASS
PG_NAME
To build the application, run the following code
docker build -t typeorm-nodejs
docker-compose up -d
After building the project, run the following command to handle the database migrations.
yarn mig:gen
yarn mig:run