Giter Site home page Giter Site logo

instagram-clone's Introduction

Instagram Clone

A full-stack web application built using the MERN stack, featuring user authentication, API debouncing, pagination (implemented with React Query), and optimistic updates. Photo uploads are handled using the Cloudinary API.

Video of the project

2023-01-06-22-44-30.mp4

External Libraries - Frontend

  • Material UI
  • Axios
  • SCSS
  • React Router Dom 6
  • Universal Cookie
  • React Loader Spinner
  • React Query

External Libraries - Backend

  • Bcryptjs
  • CORS
  • Dotenv
  • Express
  • Jsonwebtoken
  • Mongoose
  • Nodemon (for development)

Environmental Variables

Client

  • REACT_APP_LOCAL_URL: Holds the local URL for development, to prevent sending requests to the hosted backend.
  • REACT_APP_CLOUDINARY_API: Holds the admin's Cloudinary API key.

Server

  • MONGO_URI: Holds the MongoDB connection string.
  • JWT_SECRET: Holds a 512-bit key generated using https://allkeysgenerator.com/.
  • JWT_EXPIRE: Holds the JWT expiration date (set to 35 days in my case).

Getting Started

  1. Clone the repository:
git clone [email protected]:ElhanM/instagram-clone.git
  1. Go to the client folder and run the following commands:
cd client
cp .env.example .env
yarn install && yarn start or npm install && npm start
  1. Do the same for the server folder:
cd server
cp .env.example .env
yarn install && yarn dev or npm install && npm run dev

Dont forget to update the .env files!

License

MIT

instagram-clone's People

Contributors

elhanm avatar

Stargazers

Haris Kordic avatar

Watchers

Haris Kordic avatar  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.