Quickshorts is a social media application where you can create image posts,like posts,comment on posts, and add or remove friends.
-
API Authorization: Quickshorts ensures secure access to its APIs through JWT (JSON Web Token) authorization. Only authorized users can interact with the application's APIs.
-
Session Management: JWT is used for session management in Snapture. It helps maintain user sessions and provides secure access to different parts of the application.
Quickshorts is built using the following technologies:
- Frontend: React.js
- Backend: Node.js with Express.js
- Database: MongoDB
Before running Quickshorts, ensure that you have the following software installed:
-
Node.js: Make sure you have Node.js installed on your system. You can download it from the official Node.js website and follow the installation instructions for your operating system.
-
MongoDB: Install MongoDB and make sure it is running on your local machine or provide the connection details for a remote MongoDB database.
To install and run QuickShorts locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yash7488/Quickshorts.git
-
Navigate to the cloned repository:
cd _QuickShorts
-
Install the dependencies for the frontend:
cd client npm install
-
Install the dependencies for the backend:
cd ../server npm install
QuickShorts requires configuration for various services. Here are the steps to set up the required configuration:
-
Open the
server
directory. -
Create a
.env
file in this directory. -
Set the following environment variables in the
.env
file:-
MONGO_URL
: The MongoDB connection string. -
PORT
: 3001. -
JWT_KEY
: A secret key used for JWT token generation and validation.
-
-
Save the
.env
file.
After completing the configuration steps, you can now run Snapture locally.
- Start the backend server:
cd server node index.js
- Start the frontend development server:
cd ../client npm start
- Access QuickShorts in your browser at
http://localhost:3000
.