This is a simple Login API built using Node.js and Express.js. It lets a user login and keeps a check for inactivity.
- Node.js
- Git
-
Clone the repository:
git clone https://github.com/Enigma-52/Login-API.git
-
Navigate to the project directory:
cd Login-API
-
Install dependencies:
npm install
-
Start the server:
node server.js
-
Open your web browser and visit http://localhost:3000 to access the application.
-
Username - admin || Password - password
I have changed the inactivity timer to 4 seconds for making this video - https://www.youtube.com/watch?v=Lk7Ltwtc3Bw
- Users can login through the
/api/login
. - Users can logout through the
/api/logout
. - Inactivity timer of 2 minutes starts after Login to the application
public
: Contains static files (HTML, CSS and Javascript) for the frontend.server.js
: Node.js application file containing server setup and endpoints.