An authentication service built using Node.js and express.
-
Clone the project.
git clone https://github.com/archibishop/Auth-Service.git
-
Run
npm install
to install dependencies. -
Run the app by running
npm run start
. -
Run the tests by running
npm run test
.
API endpoints
interface
- User can create an account.
- User can login.
- User can activate account.
- User can reset password.
- Can return a list of the users.
API endpoints
End Point | Verb | Use |
---|---|---|
/api/v1/ |
GET | API prefix |
/api/v1/users |
GET | Gets a list of users |
/api/v1/users |
POST | Create User account |
/api/v1/users/activate/:id |
GET | Activate user account |
/api/v1/users/login |
POST | Login user |
/api/v1/users/reset-password |
POST | User resets password |
- Users creates account Endpoint takes the following data.
{
"first_name": "john",
"last_name": "doe",
"user_name": "johnd",
"email": "johnd@gmail.com",
"password": "password"
}
- Users logins in takes the data as follows.
{
"email":"johnd@gmail.com",
"password":"password"
}
API endpoints
- Node/Express
- Sequelize(ORM)
- Postgresql
Wagubi Brian