stardust-backend's People
stardust-backend's Issues
TODO: add note archival feature
TODO: add new account controller
Currently, there is no way for a user to update, or delete their account.
We should create a update
, and delete
route under a account
controller to enable this.
TODO: implement detection of existing users
Implement logic to detect existing users here:
stardust-backend/src/users/users.service.ts
Lines 15 to 20 in cda1239
TODO: set up API versioning
TODO: set up testing for routes
TODO: remove users controller
The entire users controller is unused.
stardust-backend/src/users/users.controller.ts
Lines 1 to 36 in 56dad37
TODO: remove unused imports and variables from the codebase
TODO: add POST /notes/bin/empty route for emptying the bin
TODO: make /auth/signup return a JWT token on success
If we return a JWT token on the /auth/signup route, we can avoid an unncesseary request if we want to sign the user in immediately.
TODO: add server side password validation for CreateUserDto
Here:
stardust-backend/src/users/dto/create-user.dto.ts
Lines 8 to 9 in 75cb0ea
This can be done with the IsStrongPassword decorator.
TODO: configure CORS
Configure CORS options properly here:
Line 11 in 8a75287
Read https://github.com/expressjs/cors#configuration-options
TODO: move auth routes into auth module
Move auth routes from here:
stardust-backend/src/app.controller.ts
Lines 30 to 39 in cda1239
into the auth module
TODO: add environmental variable based JWT secret
Make the JWT secret get a proper value from an environmental variable here:
stardust-backend/src/auth/constants.ts
Lines 1 to 3 in 8a75287
Read https://docs.nestjs.com/techniques/configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.