Skip to content

olatzgoti/SocialMedia-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocialMedia

Intro

Social Media backend designed to connect users in a secure online environment.

Our development journey has been focused on creating a social network engaging with users, posts and comments with an emphasis on security, performance, and functionality.

⚡ Objectives

  • User registration using Bcrypt.
  • User login + token + middleware.
  • Implementing CRUD operations.
  • Validations.
  • Using Multer to send images.
  • Confimation email and recover password.
  • Like/remove/update a post.
  • Backend available in production.

🔧 Built with

npm Node Mongodb Mongoose JS postman

⬇️ Download

 # Clone the repository
 $ git clone 
 
 # Enter the directory
 $ cd 

 # Install the dependencies
 $ npm install

 # Start the project
 $ npm start 

🚀 Development

Developed with JavaScript, leveraging Express, Mongosh, and Mongoose for seamless integration with a MongoDB database. Security is reinforced through the implementation of Bcrypt and JSON Web Token to safeguard user data.

Endpoints

The system encompasses CRUD operations (Create, Read, Update, Delete). The Social network features various types of endpoints, some of which are highly specific and secure. To enhance security, there are 3 type os middlewares. Rigorous testing of all endpoints using Postman was conducted before deploying to the Main branch, ensuring a robust and reliable system.

Users:

- Register a new user
- Login
- Confirm email
- Update by ID
- Get logged user (profile info)
- Get user by ID
- Get by name
- Follow a user
- Unfollow a user
- Logout

Posts:

- Create a new post
- Update
- Delete
- Get all posts
- Get by ID
- Like a post
- Unlike a post

Comments:

- Create a new comment
- Delete

👥 Working with branches

🖊️ License

This project is under license of Olatz Goti

⭐️ Contact me

Olatz Goti

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages