- Notifications
You must be signed in to change notification settings - Fork703
Releases: fifocode/nodejs-backend-architecture-typescript
Releases · fifocode/nodejs-backend-architecture-typescript
Libraries & Docker Upgrades
2.0.3upgrade docker images
Assets2
Uh oh!
There was an error while loading.Please reload this page.
"v1" in routes path is removed
In general APIs with v1 in the routes directory is not a good way to handle versioning. This has been removed from the project.
Now{host}/v1/login will become{host}/login
Assets2
Uh oh!
There was an error while loading.Please reload this page.
2.0.0
This is major update to the project and not compatible with the version 1.x.x
Major Changes
- Redis Cache Implementation
- Upgraded to Mongoose 6.8.0
- static class member replace with module default exports
- All libraries are updated to latest version
- Change in project structure
- Addition of API endpoint permission system
- vscode task to generate template for route, models, and repository
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Migrate to Authorization Bearer Scheme
- The headers for the protected APIs has been migrated to the standard
Authorizationheader with theBearerscheme. x-user-idheader has been removed.
Earlier:
GET /v1/profile/my// Headersx-api-key: GCMUDiuY5a7WvyUNt9n3QztToSHzK7UjContent-Type: application/jsonx-access-token: <your_token_received_from_signup_or_login>x-user-id: <your_user_id>
Now:
GET /v1/profile/my// Headersx-api-key: GCMUDiuY5a7WvyUNt9n3QztToSHzK7UjContent-Type: application/jsonAuthorization: Bearer <your_token_received_from_signup_or_login>
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Clean interface naming convension
The naming convention has been changed for all the interfaces:
Earlier:
exportinterfaceIUserextendsDocument{name:string; ...}constUser=model<IUser>(DOCUMENT_NAME,schema,COLLECTION_NAME);exportdefaultUser;
Now:IUser →User andUser →UserModel
exportdefaultinterfaceUserextendsDocument{name:string; ...}exportconstUserModel=model<User>(DOCUMENT_NAME,schema,COLLECTION_NAME);
Similar changes forIApiKey,IRole,IKeystore, andIBlog
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Release Version 1.0.0
d806881 This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
Update README.md
Assets2
Uh oh!
There was an error while loading.Please reload this page.