Steps to run this project:
- git clone https://github.com/IDEHCO3/hyper-resource-node.git
- Inside hyper-resource-node folder, execute: npm i
- In hyper-resource-node folder, setup database settings inside ormconfig.json file.
- Still in hyper-resource-node folder, using reverse engineerings in database such as postgres, execute: npx typeorm-model-generator -h localhost -p 5432 -d my-database -u my-user -x my-password -e postgres -o ./src/entity/ -s public 4.1. Or you can create your models/entities in src/entity/entities/ based on typeorm. 5 Verify if all models/entities were generated inside src/entity/entities/
- Still in hyper-resource-node folder, execute: npm run generate-all
- In hyper-resource-node folder execute: npm run start
- See in http://localhost:3000/api