A RESTful authentication API using Node.js, Express, MongoDB, and session-based authentication.
- User registration and login
- Session-based authentication
- MongoDB for data storage
- RESTful API structure
- Swagger API documentation
- Bootstrap for frontend views
- Clone the repository
- Run
npm install
to install dependencies - Create a
.env
file with your configuration (see below) - Start the server with
npm start
PORT
: Port number for the serverMONGODB_URI
: MongoDB connection stringSESSION_SECRET
: Secret for session encryption
Swagger UI is available at /api-docs
after starting the server.
MIT