- jsonwebtoken
- bcryptjs
- mongoose
- gravatar
- express-validator
- git clone
- npm instalL
- Create file default.json in the config folder and add this with your secret data{
"mongoURI":"YOUR MONGO URI",
"jwtSecret":"mySecretjwt",
"gitHubClientId":"YOUR GITHUB CLIENT ID FOR THIS OAuthApp",
"gitHubSecret":"YOUR GITHUB SECRET FOR THIS OAuthApp"
}
- npm run server
- Endpoint for register an user working and handling the errors
- Registering an user in mongo db
- Get the user avatar or assign a default one
- Registering a secret jsonwebtoken and sending in the request response
- Middleware for manage the protected routes
- Checking the token if valid. Protecting the auth route based on the token
- Check the credentials and logue in the user
- Validating and getting the current user profile
- Endpoint for Create/Update user profile
- Endpoint for Get logged profile
- Endpoint for Get all profiles
- Endpoint for Get profile by id
- Endpoint for Delete user
- Endpoint for Create experiences
- Endpoint for Delete experience by id
- Endpoint for Create education
- Endpoint for Delete education by id
- Endpoint for Get github repository by user name
For using the github endpoint for get the repositories by user name , first register the app in github OAuthApp and insert your credentials ind the default.json file.
https://github.com/settings/developers <----------------
- TODO: Upload postman collection.