https://github.com/sahilpabale/nevo-api
OG nevo.to backend
https://github.com/sahilpabale/nevo-api
Last synced: 6 months ago
JSON representation
OG nevo.to backend
- Host: GitHub
- URL: https://github.com/sahilpabale/nevo-api
- Owner: sahilpabale
- Created: 2022-03-13T05:44:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-13T07:31:42.000Z (over 3 years ago)
- Last Synced: 2025-02-16T08:15:27.666Z (8 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nevo.to api documentation
## Auth API:
**Key Features -
**
1. Roles - User/Admin (Admin controls whole data/app & User can only post reviews/comments only)
2. Email and Password JWT Auth
3. Email verification
4. Password reset**User Model -**
```js
{
username: String,
email: String,
password: String,
role: String,
userCreatedAt: Date,
lastLoginAt: Date
}
```**API Design -**
1. POST `/api/auth/signup`
- Request:
- `{ username, email, password }`
- No Auth Header
- Response:
- `success object`
- `user | server error object`