Skip to content

LucasZanek/ZNKConnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developers social media

Using MERN Stack (MONGODB, EXPRESS, REACT, NODEJS)

  • 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

Back end at this moment:

  • 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

PreReq

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 <----------------

Postman Collection for testing API without front

  • TODO: Upload postman collection.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published