Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/irtiza751/raw-sql-api
RAW SQL API is a todo API for learning Raw SQL with features like authentication, CRUD, & image upload.
https://github.com/irtiza751/raw-sql-api
crud-application expressjs jwt-authentication nodejs postgresql raw-sql
Last synced: about 21 hours ago
JSON representation
RAW SQL API is a todo API for learning Raw SQL with features like authentication, CRUD, & image upload.
- Host: GitHub
- URL: https://github.com/irtiza751/raw-sql-api
- Owner: Irtiza751
- Created: 2023-07-29T11:58:05.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-25T10:39:06.000Z (11 months ago)
- Last Synced: 2023-12-25T11:26:26.905Z (11 months ago)
- Topics: crud-application, expressjs, jwt-authentication, nodejs, postgresql, raw-sql
- Language: TypeScript
- Homepage:
- Size: 310 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
- [x] Create a User repository
- [x] Create a Todo repository
- [x] Create a Tokens repository
- [x] Prevent sending refresh token to the browser
- [x] Create the CRUD controller for todos
- [x] To update the todo alway send `title & description` both
- [x] Implement the auto login on token expiry
- [ ] Add cascasde delete whene user delete a self account
- [ ] Add the user profile image option as wellRefresh token rotation flow
![auth-expire-flow](https://github.com/Irtiza751/raw-sql-api/assets/91867702/85de7d75-aa76-4adb-abd3-ef58c3a8bc22)