Skip to content

Commit

Permalink
Modified structure of codebase to fit our needs (#6)
Browse files Browse the repository at this point in the history
* Modified structure of codebase to fit our needs

* Modified backend structure to fit our needs

* Modified structure

* Modified structure

* Added PORT Tests

* New structure added
  • Loading branch information
ProgrammerDATCH authored May 15, 2024
1 parent 8c7c955 commit fa2f930
Show file tree
Hide file tree
Showing 21 changed files with 265 additions and 193 deletions.
5 changes: 2 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
PORT=
DATABASE_NAME=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_LINK=
NODE_ENV=
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ This is the backend for E-Commerce-Ninjas, written in Node.js with TypeScript.
- `models/`: Sequelize models.
- `middlewares/`: Middleware functions.
- `modules/`: Modules like User, Products, etc.
- `user/`: user module.
- `controller/`: user controllers.
- `repository/`: user repositories.
- `test/`: user test cases.
- `validation/`: user validation schemas.
- `routes/`: API routes.
- `utilities/`: Utility functions.
- `validation/`: Validation schemas.
- `services/`: Service functions like sendEmails.
- `index.ts`: Startup file for all requests.

## Sequelize ORM
Expand Down
Loading

0 comments on commit fa2f930

Please sign in to comment.