This API is created to help in my journey to learn front-web framework and back-end architecture using Typescript, Express and TypeORM
You can find all the information for the project in the main repository
npm install
Update ormconfig.json
and src/database.ts
with your database information, then run migration to synchronise the tables
npm run typeorm migration:run
This start the API on port 3000
npm start
Q: Why do you use plaintext for the password ? Why are you not using any .env file or configuration ?
A: This API is only meant for development purposes, implementing bcrypt or configuration can be done in 5 minutes here but is not the purpose of this project
Q: Why do you use an API instead of localStorage in your Front-End App
A: I want yo be able to synchronize all my front-end app. And using an API is a good way to start learning interactivity with the outside world. If i can implement this one, I can implement a large majority of other API.
If you have any feedback regarding to the architecture or any advices on my way to code, feel free to make a PR explaining how you would have done it, or send me a mail at [email protected]