Skip to content

Lyliya/API-TODOLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic TODO Api Project

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

Usage

Download dependencies

npm install

Run typeorm migration

Update ormconfig.json and src/database.ts with your database information, then run migration to synchronise the tables

npm run typeorm migration:run

Start the API

This start the API on port 3000

npm start

Q/A

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.

Feedback

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]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published