OnSpot is a blog website designed for tech enthusiasts to share knowledge, insights, and discussions on various technology-related topics. Users can create and share blogs, interact with posts by liking and commenting, and enjoy a smooth experience powered by modern frontend and backend functionalities.
To run this project, you will need to set the following environment variables in your .env
file:
# Google OAuth
VITE_GOOGLE_CLIENT_ID=''
# Backend URL
VITE_BACKEND_URL='http://127.0.0.1:3000/api/v1'
# JWT Configuration
VITE_JWT_EXPIRES_IN=90
# Firebase Configurations
VITE_FIREBASE_API_KEY=""
VITE_AUTHDOMAIN=""
VITE_PROJECT_ID=""
VITE_STORAGE_BUCKET=""
VITE_MESSAGING_SENDER_ID=""
VITE_APP_ID=""
VITE_MEASURMENTID=""
Ensure you have the following installed:
Clone the Repository:
git clone https://github.com/your-username/onspot.git
Navigate into the Project Directory:
cd onspot
Install Dependencies:
npm install
Set Up Environment Variables:
Create a .env
file in the root directory and add your environment variables as listed above.
Start the MongoDB Database: Make sure MongoDB is running locally or set up a MongoDB Atlas database.
Start the Backend Server: Assuming you have the backend configured, start it:
# In the backend directory
npm run start
Start the Frontend (Vite) Server:
npm run dev
Open Your Browser: Navigate to http://localhost:3000 to view the app.
Contributions are welcome! If you’d like to make changes, please fork the repository and submit a pull request with a description of your changes.
This project is licensed under the MIT License.