vky5 / onspot

blogs
https://blacktree.vercel.app
5 stars 3 forks source link

OnSpot - Tech Knowledge Sharing Platform

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.

Table of Contents

Features

Tech Stack

Environment Variables

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=""

Getting Started

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the Repository:

    git clone https://github.com/your-username/onspot.git
  2. Navigate into the Project Directory:

    cd onspot
  3. Install Dependencies:

    npm install
  4. Set Up Environment Variables: Create a .env file in the root directory and add your environment variables as listed above.

Running Locally

  1. Start the MongoDB Database: Make sure MongoDB is running locally or set up a MongoDB Atlas database.

  2. Start the Backend Server: Assuming you have the backend configured, start it:

    # In the backend directory
    npm run start
  3. Start the Frontend (Vite) Server:

    npm run dev
  4. Open Your Browser: Navigate to http://localhost:3000 to view the app.

Usage

Contributing

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.

License

This project is licensed under the MIT License.