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: 2 months 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-25T10:39:06.000Z (over 1 year ago)
- Last Synced: 2025-01-15T01:56:07.080Z (4 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: 3
-
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
