Skip to content
mega-groupPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ESOS v2.0

ESOS is a fork of FivePD 2.0

ESOS is a work in progress

Development

  1. Navigate to the /src/ESOS.Nui/ project/folder and execute npm install if the commands fails, do npm install --force instead
  2. Download and extract the latest recommended build of FXServer into the /dev/FXServer/ directory
  3. Change the build configuration to Debug via Main Menu > Build > Change Solution Configuration
  4. Setup a database of your choosing, either by installing MySQL Community Server or MariaDB to your local PC, or by using one of the Docker configurations metioned in the "Databases" section
  5. Make sure the value of ui_page is http://localhost:4200 in your fxmanifest.lua
  6. Run the Start everything configuration, or alternatively the Start FXServer, Start NUI development server and Start static audio server configurations

Building the solution will automatically copy all files recursively from the ESOS.Statics folder to the resource folder and restart the resource.

Databases

If you choose to run a database locally, you will need to download MySQL Community Server or MariaDB. Be sure to configure your database options correctly in the general.yaml file.

Alternatively, you can -- and should -- use one of the included Docker configurations. In order to do so, download Docker Desktop and choose either "Run MySQL" or "Run MariaDB" in the run configuration dropdown.

  • Host: localhost
  • Username: root
  • Password root
  • Port: 3306 (MySQL) 3307 (MariaDB)

Database Infrastructure

The project uses Dapper as the micro-ORM for database interactions. Custom SQL queries are constructed using the internal SqlBuilder (see src/ESOS.Server/Database/Sql/SqlBuilder.cs).

Database schema migrations are handled via a custom implementation. To manage table structures, we use TableBuilder. An example of the current schema definition can be found in src/ESOS.Server/Database/Migrations/Initial20251228.cs.

Localization

Make sure that all keys end with one of the following words, so we can extend them in the future if needed. There are some sentences where this doesn't make sense, for example UI.LABEL.CITIZEN_DATABASE or UI.LABEL.DIRECTION.NEXT. In these cases we don't want to have more options other than the basic form, so we can omit the endings listed below.

SINGULAR, PLURAL, TITLE, DESCRIPTION, HELP_LABEL

Updating

  1. Edit the ESOS.Localization/Localization/en-US.json file
  2. Run the Build localization configuration

It'll output the files to ESOS.Statics/Localizations. In case you need the new localization file to be loaded on the server just build the solution again.

Production

  1. Select the Release solution configuration
  2. Build the solution. Will output to build-public
  3. Run the Build localization configuration to generate the optimized localization file. Will output to ESOS.Statics/Localizations.
  4. Run npm run build in the ESOS.Nui project. Will output to ESOS.Nui/dist
  5. Copy all files from ESOS.Nui/dist/browser to build-public/Libraries/ESOS.Nui
  6. In the fxmanifest.lua change the ui_page value to Libraries/ESOS.Nui/index.html

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages