Coder Social home page Coder Social logo

rayen-michael / social-media-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sundayolubode/social-media-api-nodejs

0.0 0.0 0.0 3.25 MB

An open-source RESTful API developed using NodeJS, ExpressJS and MongoDB helps you to integrate User Authentication and Social Media Post Management in your application with ease.

Home Page: https://social-api.nixlab.co.in

License: GNU General Public License v3.0

JavaScript 98.52% CSS 0.66% HTML 0.82%

social-media-api's Introduction

Social Media API

An open source social media API built with Node.js, Express, and MongoDB. This API is built for developers to use in their projects. It is not meant to be used as a standalone social media platform. This API is still in development and is not ready for production use.

Stars Forks Watchers Contributors

GitHub last commit GitHub issues GitHub pull requests GitHub Licence

  • This project is powered by NixLab Technologies.

  • If you would like to contribute to this project, please see the contributing guidelines.

  • We are open to suggestions and contributions. Feel free to open an issue or a pull request. If you like the project, please consider giving it a star.

  • Due to database limitations, the API is currently hosted on a free tier of MongoDB Atlas. So, it may take a few seconds to respond to your request. Please be patient.

  • This API is currently in development stage. So, after releasing the production version, we will be adding more features to it. You can check the progress of the project here. If you have any suggestions, feel free to open an issue.

  • For the production version, we are planning to host the API on AWS and a paid tier of MongoDB Atlas. So, it will be more reliable and faster.

  • After releasing the production version, we may delete some of the data in the database for better and faster performance. Data will be deleted only if it is not required for the project or it may cause any issues or conflicts.

If you would like to contribute, please read the contribution guidelines.

Documentation

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

Features

  • User Authentication
  • Post Feed
  • Post Creation
  • Post Editing
  • Post Deletion
  • Post Liking
  • Post Commenting
  • Post Sharing
  • Post Searching
  • Post Filtering
  • Post Sorting
  • Post Reporting
  • Post Blocking
  • Post Muting
  • Profile Creation
  • Profile Editing
  • Profile Deactivation
  • User Following
  • User Unfollowing
  • User Blocking
  • User Muting
  • User Searching
  • User Filtering
  • Trending Posts
  • Hash Tagging
  • Post Tagging
  • User Tagging
  • Recommendations
  • Search Suggestions

Usage

  • Star and Fork the repository
  • Clone the repository
git clone https://github.com/<your-github-username>/social-media-api-nodejs.git
  • Install required modules
npm install
  • Create a new directory config in src directory
  • Create a new file config.env in config directory
  • Add following VARIABLES in config.env or in production Environment Variables
  • Replace XXXXXXXXXXXXXXXXXX with your own values
PORT = YOUR PORT

MONGO_URI = 'XXXXXXXXXXXXXXXXXX'
DB_NAME = 'XXXXXXXXXXXXXXXXXX'

NODE_ENV = 'development'

JWT_SECRET = 'XXXXXXXXXXXXXXXXXX'
JWT_EXPIRES_IN = 7d

SMTP_FROM = 'Test <[email protected]>'

SENDGRID_API_KEY = 'XXXXXXXXXXXXXXXXXX'

# Cloudinary
CLOUDINARY_CLOUD_NAME = 'XXXXXXXXXXXXXXXXXX'
CLOUDINARY_API_KEY = 'XXXXXXXXXXXXXXXXXX'
CLOUDINARY_API_SECRET = 'XXXXXXXXXXXXXXXXXX'

# Twilio
TWILIO_ACCOUNT_SID = 'XXXXXXXXXXXXXXXXXX'
TWILIO_AUTH_TOKEN = 'XXXXXXXXXXXXXXXXXX'
TWILIO_PHONE_NO = 'XXXXXXXXXXXXXXXXXX'

# Firebase
FIREBASE_TYPE = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_PROJECT_ID = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_PRIVATE_KEY_ID = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_PRIVATE_KEY = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_CLIENT_EMAIL = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_CLIENT_ID = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_AUTH_URI = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_TOKEN_URI = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_AUTH_PROVIDER_X509_CERT_URL = 'XXXXXXXXXXXXXXXXXX'
FIREBASE_CLIENT_X509_CERT_URL = 'XXXXXXXXXXXXXXXXXX'
  • Run the server
npm run dev

License

This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details.

Activities

Alt

Connect With Me

Instagram: nixrajput Linkedin: nixrajput GitHub: nixrajput Twitter: nixrajput07 Facebook: nixrajput07

social-media-api's People

Contributors

nixrajput avatar rayen-michael avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.