Git Product home page Git Product logo

openai-social's Introduction

SocialAI

A set out create a social media app using toolsets from MERN, an Instagram but with powerful models like DALL-E, etc. Where only limit is your creative imagination.

๐Ÿšง Work in progess...


๐Ÿ–ฅ๏ธ Tech Stack

Frontend:

reactjs nextjs typescript tailwind-css

Backend:

nodejs mongodb

Deployed On:

vercel


Since the AI boom on the internet has been trending and creating new ways to unlock powerful technologies, I always wanted to create an app that utilizes the powerful models provided by one of the leading techs in AI, OpenAI. Hence, here it goes SocialAI, an image-sharing social media app. Imagine Instagram with all its features combined with the wonders of AI models that enable users to unlock or work as catalysts adding a creative curve to their social existence.
The project was created using my favorite framework for React - NextJs with TypeScript as its principal language, for creating UI components and structurize backend for API calls. Cloudinary, a media management to store generated images shared by the user. The UI was created using TailwindCSS and plugins from npm (Node Package Manager). For form validation and submissions, react-hook-form is used. The entire state is centralized with redux-toolkit, async thunks for asynchronous API calls, and state management. A custom hook like useDebounce to limit the overflow of API calls was created to enable the search feature of other images shared in the community of the app.

Screens

  • Home page as images shared by other users
  • Create post for generating image from prompt
  • Download button for save images

Glimpses of fiverr-clone ๐Ÿ˜‰ :

1




2



Getting Started

This project was built using NextJs, Redux, TailwindCSS, HTML, JavaScript, Rest API, Node JS, MongoDB.

Prerequisites

  • NPM
  • Node JS
  • MongoDB

Setup

The project repository can be found in GitHub link or just clone the project using this command.

Using HTTPS

# git clone https://github.com/zuhedshaikh95/openai-social.git
  • Open terminal on your workspace with
cd /home/workspace/openai-social

Install

Install NPM

Check that you have node and npm installed

To check if you have Node.js installed, run this command in your terminal:

node -v

To confirm that you have npm installed you can run this command in your terminal:

npm -v

To confirm that you have MongoDB installed you can run this command in your terminal:

mongo -v

To install all the dependences of the project, run the following command:

To run the application, run the following command:

npm run dev


Environment Variables

To run this project, you will need to add the following environment variables to your .env file and create a unsigned preset at cloudnary dashboard and a folder named 'SocialAI'

MONGODB_URI e.g. mongodb cluster URI

OPENAI_API_KEY e.g. Secret key OpenAI

CLOUDINARY_CLOUD_NAME e.g. Cloud name

CLOUDINARY_API_KEY e.g. Cloud API key

CLOUDINARY_API_SECRET e.g. Cloud API secret



Tools used on this project

  • Visual Studio Code
  • NextJs template
  • MongoDB compass

Contact

Let's connect ๐Ÿค

linkedin GitHub

ยฉ 2023 Zuhed Shaikh

Show your support

Give a โญ๏ธ if you like this project!

openai-social's People

Contributors

zuhedshaikh95 avatar

Watchers

 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.