The purpose of this project is to build a sample for rest API using :
Express Typescript TypeOrm Postgre SQL
- Node 14.17.3
- PostgreSQL instance up and running
- Copy .env.example to a .env file, fill your connection settings
- Add entities in ./src/entity
- Add controller in ./src/controller
- Configure routing in route.ts
- Nodemon is used for dev environment please use : npm run dev
- Generate migration : npm run typeorm migration:generate -- -n <migration_name>
- Run migration : npm run typeorm migration:run
!!! Keep in mind that typeorm is shortcuted in the package.json !!!
drop table hero; drop table league; drop table power; drop table migrations; drop table typeorm_metadata;
- Angular language service
- Angular snippets
- Json to TS
- Path intellisense
- Rest client
- TSLint
- Typescript hero
- Terminal