Skip to content

Latest commit

 

History

History
97 lines (64 loc) · 1.67 KB

README.md

File metadata and controls

97 lines (64 loc) · 1.67 KB

Server Tracker

The Server Tracker is a web application that allows users to track Minecraft servers.

Local Development

To build the Server Tracker, follow these steps:

Highly recommended to install Bun for the package management.

  1. Clone the repository:

    git clone https://github.com/Rishon/Server-Tracker

Client

  1. Install the dependencies:

     cd Server-Tracker/client
     bun install
  2. Adjust the environment variables:

    NEXT_PUBLIC_API_URL=<API URL>
    NEXT_PUBLIC_HOSTNAME=<Hostname>
  3. Start the development Next.JS server:

     bun dev

Server

  1. Install the dependencies:

     cd Server-Tracker/server
     bun install
  2. Assign the environment variables:

     cp .env.example .env
  3. Adjust the environment variables:

    BACKEND_PORT=<Port>
    MONGODB_URL=<MongoDB URI>
  4. Start the development server:

     bun dev

Production

To deploy the Server Tracker, follow these steps:

  1. Build the Next.JS application:

     cd Server-Tracker/client
     bun run build
  2. Run the docker-compose file:

     cd Server-Tracker
     docker-compose up -d

Issues

If you discover a bug, please open up an issue.

Contributing

To contribute to the Server Tracker, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'.
  4. Push to the branch: git push origin <branch>.
  5. Create the pull request.