Skip to content

RAW SQL API is a todo API for learning Raw SQL with features like authentication, CRUD, & image upload.

Notifications You must be signed in to change notification settings

Irtiza751/raw-sql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THE RAW SQL SOCIAL MEDIA API

installation

  1. clone this repository git clone https://github.com/Irtiza751/raw-sql-api.git
  2. cd into the raw-sql-api project then run npm install
  3. After installing all the dependencies run npm run start:dev & You should be fully setup now.

Project Structure

The src directory contains all the source code, & in the src folder the code is organize with the following folders (name & conventions).

  1. Modules folder -- (name_module) eg. auth_moudle etc.
  2. Controllers folder -- (name.controller.ts) eg. auth.controller.ts
  3. Lib folder -- (name.ts)

TODO

  • Create a User repository
  • Create a Todo repository
  • Create a Tokens repository
  • Prevent sending refresh token to the browser
  • Create the CRUD controller for todos
  • To update the todo alway send title & description both
  • Implement the auto login on token expiry
  • Add cascasde delete whene user delete a self account
  • Add the user profile image option as well

Refresh token rotation flow auth-expire-flow

About

RAW SQL API is a todo API for learning Raw SQL with features like authentication, CRUD, & image upload.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published