Skip to content

saadbruno/openrct2_plugin_repository

Repository files navigation

OpenRCT2 Plugin Repository

A place where users can share OpenRCT2 plugins

image

For now, users can submit plugis hosted on GitHub repos. There is a button in the top right to submit links, without needing to log in.

There is server side validation to make sure it's a https://github.com link. I'm alsothinking about adding validation to check if the repo has rct2 or OpenRCT2 in the tags, but not everyone uses tags.

There is basic listing (sorting new and rating, which is based on when users submitted the plug-in, and how many stars it has on GitHub), also a basic search functionality.

Users can also check details about the plug-in (which is basicallt the README.md form the GitHub repo), and also list plugins by user (by clicking on their profiles)

Setup:

Development:

  • Create a GitHub Access Token with the public_repo option.
  • Copy template.env to .env and edit it with your GitHub Token, and change the HTTP port if you'd like
  • make run

You should now be able to access the page at http://localhost, or http://localhost:PORT if you edited the port in the .env file

Prod:

Reverse proxy example for NGINX is in docker/nginx/prod/reverse-proxy.conf

  • Copy template.env to .env and edit it with your GitHub Token, and also change the MySQL password
  • Run make build-sass to build the scss into a css file
  • make run-prod

Links and other third party libraries used: