ContriHUB / CP-Grind

0 stars 6 forks source link

CP-GRIND

Table of Contents

Features

You can use this project to build applications that interact with competitive programming platforms, analyze contest statistics, or create personalized dashboards for users participating in coding competitions.

Prerequisites

Before you begin, ensure you have met the following requirements:

Installation

Follow these steps to set up and run the project:

  1. Clone the repository:

    git clone https://github.com/ContriHUB/CP-Grind.git
  2. Change to the project directory:

    cd CP-Grind
  3. Install project dependencies using Go Modules:

    go mod tidy
  4. Set up your environment variables. Create a .env file in the project root and add the following configuration, replacing the values with your own:

    # Database Configuration
    DATABASE_URL = "host=localhost user=<Database Username> password=<Database Password> dbname=<Database Name> port=<Database Port>"
    # Fiber Configuration
    PORT=3000
  5. Migrate the database to create the necessary tables:

    go run migrate.go
  6. Start the application:

    go run main.go

Configuration

You can configure the application by modifying the .env file with your own settings. Additionally, you can customize other aspects of the application by editing the relevant code files.

Usage

After successfully setting up the project, you can start using the RESTful API. You can use tools like Postman or curl to interact with the API.

Contributing

We welcome contributions to this project. If you have any bug fixes, enhancements, or new features to propose, please open a pull request. For major changes, please open an issue first to discuss the changes you want to make.

License

This project is licensed under the MIT License.