Skip to content

ankit-kumar-jat/socialmedia_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful api for Auth (espress-sessions)

this is a rest api using Express, Express-Sessions, MongoDB for Auth.

configration

add an .env file at root folder of the application

# port for express listner
PORT=3000

# node environment
NODE_ENV=development

# mongo db url mongodb+srv://username:password@cluster-0-abcd.mongodb.net/collection
MONGO_URI=mongodb://127.0.0.1:27017/auth

# express session config
# express session name
SESS_NAME=sid
#express session secret
SESS_SECRET=secret!session
# session lifetime 1 day
SESS_LIFETIME=86400000

remaning tasks

  • concurrency control for like and comment count
  • email verification
  • rate limiting
  • pagination for posts, comments etc.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published