This project serves as the backend for an Instagram clone, featuring functionalities like user registration, login, post creation, liking posts, and user search.
- User Authentication: Register and login functionality using Passport.js.
- Feed Display: View a feed populated with posts from various users.
- Profile Management: Edit user profiles, upload user-specific posts.
- Like Posts: Allow users to like or unlike posts.
- Search Users: Implement user search functionality.
- Clone this repository to your local machine using
git clone
. - Navigate to the project directory.
- Install dependencies using
npm install
. - Run the server using
npm start
ornode index.js
.
- Node.js: Backend JavaScript runtime.
- Express.js: Web application framework for Node.js.
- Passport.js: Authentication middleware.
- Multer: Middleware for handling multipart/form-data.
- Mongoose: Object Data Modeling (ODM) library for MongoDB.
- POST
/register
- Body: { username, name, email, password }
- POST
/login
- Body: { username, password }
- POST
/upload
- Body: Multipart Form Data { image, caption }
- GET
/like/post/:id
- GET
/username/:username