Code Monkey home page Code Monkey logo

sarpheab-api's People

Contributors

meassamrong avatar kimangkhenng avatar tfd-ed avatar

Stargazers

Saroeun Tola avatar Karona avatar  avatar Lim Meng Ty avatar

Watchers

 avatar

sarpheab-api's Issues

User forget password feature

User forget password feature

im interested in making a new feature to handle users forgetting passwords

To- Do

  • allow the user to send requests and forget their password with their email
  • Use sending blue SMTP to send an email to the user with a magic url+token
  • Generate specific token parame and save it as temporary to DB for comparison when user's requests with Token + URL that we send to email
  • the URL request forget password will expire in one time request and 1 hour.
  • Maybe need to modify user DB model to add a new object isRequesResetPassword: { isReset : true, token_url: String, req_date: new Date() }
  • And I would like to request .env temple as well ๐Ÿ˜….

Middleware to validate MongoDB ID type

Issue

When we want to access or modify specific resources bases on MongoDB ID, the server treat it as valid MongoDB ID type without checking which is high risk for system crash.

To-do

  • Create a middleware to validate MongoDB ID
  • Middleware is flexible to accept param name

Create README

Current Issue

There is no readme in the project

To-do

  • Create a README.md in root directory
  • Write README on how to setup project

Pagigation

Issue

There is no pagination when calling API for all tweets or all users which make it hard for client to render all at once.

To-do

Handle File Upload

Issue

The current system doesn't allow image upload for tweets.

To-do

  • Create a route to attach an image to tweet
  • Add image field to tweetModel
  • Store on local storage

Reference

Use multer for image uploading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.