SocialsJSON
- Introduction
- Features
- Prerequisites
- Getting Started
- Usage
- API Endpoints
- Testing
- Deployment
- Contributing
- License
- Contact
SocialsJSON is an API that can be used with any type of front end project that needs basic social media functionalities. The data are returned in JSON format.
You can use examples below to check how SocialsJSON works. Feel free to enjoy it in your awesome projects!
This API was written using javascript.
The SocialJSON provide the following functionalites:
- register a user
- login a user
- create post
- like a post
- see the no of like and comments on a post
- comment on a post
- get user feed(see post of users that you follow)
- follow and unfollow a user
- see posts made by users
- see notification to users when their posts are liked, commented on and their when they are tagged in a post.
List of software and tools required to run your project.
- Node.js
- MongoDB
- Postman (optional, for testing API endpoints)
You need to have node js installed. For installation visit the guide. The follow the guide thereafter.
-
Clone the repository:
git clone <https://github.com/malachi43/social-api.git>
Copy code
cd social-api
npm install
Create a .env file in the root directory of your project:
Copy code
MONGO_URI= <mongodb://localhost:27017/db_name>
SESSION_SECRET= <your session secret>
CLOUD_NAME= <your cloudinary cloud name>
API_KEY= <cloudinary api key>
API_SECRET= <cloudinary api secret>
REDIS_URI= <redis connection uri>
Instructions for using your API, including example requests and responses.