this is my first application. It's was made to be simple as possible. It's able to perform basic CRUD operations.
The first thing that I noticed was the importance of not dealing with passwords and authentications. I realized that would be better if I delegated those functions and I didn't do because one of the goals of this project was to deal with those stuff myself.
- nodeJs 16.11
- typescript
- express 4.17
- bcrypt 5.0
- Mysql 2.8
- uuid 8.3
- jsonwebtoken 8.5
- knex
the data format in use is JSON
data: { "email": "exemple@email.com", "password": "12345678", "role": "USER" }
response: { "email": "exemple@email.com", "token": "jwt_token_exemple" }
data: { "email": "exemple@email.com", "password": "12345678", "role": "USER" }
response: { "email": "exemple@email.com", "token": "jwt_token_exemple" }
data: { "email": "exemple@email.com", "password": "12345678" "role": "USER" }
response: this endpoint offers no significant response.
You will need nodeJs 16.11 and npm to run this application.
- run npm install
- create a new scheme in your mysql
- config your .env (local variables). see env_exemple for more information.
- run npm start.