Based on the given Question 2.Implement a user registration and login API, connect mysql database, a user should be able to register and then use the registered details to sign into the system. A signed in user should be able to log out from the system.
- NodeJS
- ExpressJS
- Prisma
- postgresql (Supabase)
- Railway (Deployment)
The project builds RESTful APIs using Node.js, Express
Clone the repo:
git clone https://github.com/aniqaqill/auth-server.git
or
gh repo clone aniqaqill/auth-server
cd repo
Install the dependencies:
npm install
Running in development:
npm run dev
URL = # (https://auth-server-production-84ee.up.railway.app/)
List of available routes:
Auth routes:
POST https://auth-server-production-84ee.up.railway.app/register
- Register
POST https://auth-server-production-84ee.up.railway.app/login
- Login
POST https://auth-server-production-84ee.up.railway.app/logout
- Logout
POST https://auth-server-production-84ee.up.railway.app/profile
- Profile\