- MongoDB as database
- Real-time with Socket.io
- Image upload with multer
It's a simple "Instagram" application. The user can upload a photo with some infos, others users can see that post and like it as much as they want, all in real-time.
It uses socket.io to make it a real-time application
-
Setup a mongoDB instance. You can do this on your own, but here are the steps to do it with docker:
-
docker pull mongo
-
docker run -d -p 27017:27017 -p 28017:28017 mongo
-
-
Enter project directory:
cd web_instagram
-
Set the Mongo connection URL as an environment variable (use .env.example to create a .env file)
-
Run server in development:
yarn dev
This project is the a instagram's like web app. Users can post a photo with location, description and hashtags. They can leave as many likes as they want!
- Enter project directory:
cd web_instagram
-
Create a
.env
file based on the.env.example
file and fill in the REACT_APP_API_URL environment variable (it should behttp://localhost:3000
) -
Install the dependencies:
yarn install
- Run in development mode:
yarn start
This is a ReactJS project, bootstrapped with Create React App