kasper573 / racp

rAthena Control Panel
6 stars 3 forks source link

rAthena Control Panel

A web-based database GUI and control panel for rAthena.

Design goals

Minimal configuration > Just install and run. RACP will read all data from either the rAthena data files or mysql database.
Total abstraction > RACP contains no data. No fixtures, no enums, nothing. RACP will read all data from either the rAthena data files or mysql database and the RO client files.
Integration stability > Unit and E2E tests run on each commit and tests run against a real rathena instance.
Function over form > The UI prioritizes functionality over aesthetics. Does not support theming, keeps things simple.

Caveats

This is a pet project of mine, so it contains a lot of experimental code that I wrote for fun and practice and that would be inadvisable to use in a professional project.

Here's a list of what's experimental:

Everything else however is pretty much industry standard.

Prerequisites

To run RACP you will need the following software installed on your machine:

Development

Developing against a custom rAthena instance

rAthenaPath=<path>

Branching strategy

All development happens in branches. The main branch gets deployed to the demo site listed above. No branch is allowed to merge unless all tests pass.

Testing practices

All major features should be covered by E2E tests. As for unit tests, they are not required, but are encouraged for more complex units.

Deployment

This is a fairly standard React + Express.js application, so you can use the provided scripts to manually manage a production deployment if you have the technical experience to do so:

This .env.local configuration will work for most users:

NODE_ENV=production
reactRefresh=false
hostname=<your servers public hostname>
apiPort=<your desired port for the api>
apiBaseUrl="//<hostname>/<apiPort>"
appPort=<your desired port for the app>
rAthenaPath="<path to your rAthena folder>"
jwtSecret=<your secret>

You can see which configuration options are available:

Assets

Once you have RACP running in production, you will need to populate it with data for the best user experience. If you do not do this things like item descriptions, monster and map images, etc. will not be available.

To do this, simply sign in to your admin account and go to the Assets page and use the asset uploader. Additional instructions are available on the page.

High level technical details

This information is intended for developers of RACP. None of this is relevant if you are simply forking/cloning RACP and running it for your server as-is.