Skip to content

RiinC/restful-auth-session-node-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Restful API Application for Login and Logout

A RESTful authentication API using Node.js, Express, MongoDB, and session-based authentication.

Features

  • User registration and login
  • Session-based authentication
  • MongoDB for data storage
  • RESTful API structure
  • Swagger API documentation
  • Bootstrap for frontend views

Getting Started

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Create a .env file with your configuration (see below)
  4. Start the server with npm start

Environment Variables

  • PORT: Port number for the server
  • MONGODB_URI: MongoDB connection string
  • SESSION_SECRET: Secret for session encryption

API Documentation

Swagger UI is available at /api-docs after starting the server.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published