This repository has been archived on 2024-12-31. You can view files and clone it, but cannot push or open issues or pull requests.

1.0 KiB

Sheepstar API

About The Project

This is the official Sheepstar API. It was written with javascript and made to run with express. Have fun during programming :p

Getting Started

Prerequisites

Before you start you need to download npm

npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/sheepstar-dc/SheepstarAPI.git
    
  2. Install NPM packages as dev
    npm install --save-dev
    
  3. Create a .dotenv file and replace it to your needs
    # DATABASE
    MYSQL_HOSTNAME=localhost
    MYSQL_USERNAME=username
    MYSQL_PASSWORD=password
    MYSQL_DATABASE=database
    # EXPRESS
    SERVER_PORT=3000
    # CDN
    CDN_MEDIA_PATH=/home/user/uploads
    # BOT
    CLIENT_SECRET=discord_oauth_client_secret
    CLIENT_ID=discord_client_id
    REDIRECT_URI=discord_oauth_redirect_uri
    
  4. Start the dev server
    npm dev
    

Contributing

You can contribute by creating a pull request. We'll check it and merge it then