Overview.
This project is a full-stack web application with a frontend built using React and a backend built using Node.js and Express. The application allows users to create and view stories, similar to social media platforms. Users can create photo stories and text stories, view stories, and interact with them.
- User authentication
- Create and view photo stories
- Create and view text stories
- View and interact with posts
Frontend
- React
- React Router
- Axios
- Swiper.js
- React Icons
- React Draggable
- React Hot Toast
- Date-fns
Backend
- Node.js
- Express
- Mongoose (MongoDB)
To get a local copy up and running follow these simple steps.
-
Clone the repo
git clone <https://github.com/riaz9191/Quantum-Possibilities-Social-Media.git>-
Navigate to the project directory
cd .\Quantum-Possibilities-Social-Media\backend -
Install NPM packages
npm install -
Create a
.envfile in thebackenddirectory and add the followingport=5000 DbUserName=QS DbPassword=TWVejtyiWUJ6QeIO -
In Config folder change config.js db→url to your mongodb url and username password
-
Start the backend server:
npm start
-
Clone the repo
git clone <https://github.com/riaz9191/Quantum-Possibilities-Social-Media.git>-
Navigate to the project directory
cd .\Quantum-Possibilities-Social-Media\frontend -
Install NPM packages
npm install -
Start the frontend server:
npm start
-
-
- The backend server should be running on
http://localhost:5000 - The frontend application should be running on
http://localhost:5173
GET /api/stories- Get all storiesGET /api/stories/:id- Get a story by IDPOST /api/stories- Create a new storyDELETE /api/stories/:id- Delete a story