Skip to content

Commit

Permalink
refactor: remove python (#1981)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
- Updated `STARTING.md` with corrected typos, updated Node.js version
requirements, refined setup commands, and clarified login details.
- Adjusted the last commit hash and streamlined instructions for setting
up the development environment.

- **Chores**
- Updated `.github/workflows/node.yml` to fix Node.js version to 22.x,
and improved comments for clarity.
- Modified `package.json` by adding a new test script and removing
outdated dependencies.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
drazisil authored Jul 6, 2024
2 parents 79d2edc + e78052b commit 46443ae
Show file tree
Hide file tree
Showing 28 changed files with 19 additions and 1,358 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,30 @@ on:
env:
MCO_LOG_LEVEL: warn
EXTERNAL_HOST: mcouniverse.com
PRIVATE_KEY_FILE: thebeast/data/private_key.pem
CERTIFICATE_FILE: thebeast/data/mcouniverse.crt
PUBLIC_KEY_FILE: thebeast/data/pub.key
PRIVATE_KEY_FILE: thebeast/data/private_key.pem # These secrets are stored in the repository and are safe to "leak"
CERTIFICATE_FILE: thebeast/data/mcouniverse.crt # These secrets are stored in the repository and are safe to "leak"
PUBLIC_KEY_FILE: thebeast/data/pub.key # These secrets are stored in the repository and are safe to "leak"

jobs:
build-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 21.x]

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 22.x
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: ${{ matrix.node-version }}
# - name: Resolve Outdated Comments
# uses: Ardiannn08/[email protected]
# with:
# token: ${{ secrets.GH_TOKEN }}
# mode: "delete"
node-version: 22.x
- name: Install and test
run: |
npm install
npm run test --workspaces --if-present
npm test
env:
CODECOV_UPLOAD_BUNDLE_TOKEN: ${{ secrets.CODECOV_UPLOAD_BUNDLE_TOKEN }}
- name: Codecov
if: ${{ always() }}
if: ${{ always() }} # using always() to always run this step because i am uploading test results and coverage in one step
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/python.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .pdm-python

This file was deleted.

37 changes: 0 additions & 37 deletions Pipfile

This file was deleted.

20 changes: 10 additions & 10 deletions STARTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Documention type: Tutorial

Last updated: 2003c90b4aecc5150116e83a0f14d18f44bf3536
Last updated: 40f6623947ee7a5c2ab90f9b1f64331c40180514

---

This project isn't really geared towards an player of the game, but if you want to try it out, this is how to do so:
This project isn't really geared towards a player of the game, but if you want to try it out, this is how to do so:

## Requirements

Expand All @@ -17,7 +17,8 @@ This project isn't really geared towards an player of the game, but if you want
- Git
- Docker
- Docker Compose
- NodeJS (v20.x - v21.x)
- NodeJS (v22.x)
- NVM
- The debug copy of the game

## Setup
Expand All @@ -31,9 +32,9 @@ After getting the requirements above ready, perform the following steps:
3. Type `cd rusty-server` and press enter
4. Type `./mcos/pull_nginx_image.sh` and press enter (this step may take a while, depending on your internet speed)
5. Type `docker-compose up -d` and press enter
6. Type `corepack enable pnpm` and press enter
7. Type `pnpm install` and press enter
8. Type `pnpm run build` and press enter
6. Type `nvm install && nvm use` and press enter
7. Type `npm install` and press enter
8. Type `npm run build` and press enter
9. Type `cp .env.example .env` and press enter
10. Open the `.env` file with your favorite text editing program (the simpler the better) and edit the values as follows:
a. `EXTERNAL_HOST=` - Add the hostname or ip of the computer you are running this server on. This value MUST be reachable from where you install the game.
Expand Down Expand Up @@ -61,7 +62,7 @@ After getting the requirements above ready, perform the following steps:
9. Click "Next"
10. You are now on a screen that asks where you want to save this certificate.
11. Click on the "Place all certificates in the following store" and click "browse"
12. Select "Trusted Roor Certification Authorities". This should be the second one down.
12. Select "Trusted Root Certification Authorities". This should be the second one down.
13. Click "Ok"
14. Click "Next"
15. Click "Finish"
Expand Down Expand Up @@ -96,6 +97,5 @@ After getting the requirements above ready, perform the following steps:
If you haven't followed all the steps under the Setup section, this will probably not work well

37. Double-click the debug copy of the game
38. There are two pre-created logins, depending on what part you to see:
a. Username: "admin", Password: "admin" - No existing account, profile creation possible (not playabl, even if it says it was created)
b. Username: "molly", Password: "molly" - Existing account, can login to the server and reach the lobby. Any activities past that probably won't work.
38. These are the possible pre-created logins
a. Username: "admin", Password: "admin" - No existing profile, profile design possible, but no cars to buy so you can't create
162 changes: 0 additions & 162 deletions libs/serializable/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion libs/serializable/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions libs/serializable/pyproject.toml

This file was deleted.

Empty file.
Empty file.
19 changes: 0 additions & 19 deletions nx.json

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"scripts": {
"clean": "rm -rf **/node_modules",
"start": "node --openssl-legacy-provider --env-file=.env --loader ts-node/esm ./apps/main/server.ts",
"test": "npm run test:all",
"test:all": "npm run test --workspaces --if-present"
},
"type": "module",
Expand All @@ -33,8 +34,5 @@
"packages/shared",
"packages/shared-packets",
"schema"
],
"devDependencies": {
"nx": "19.4.1"
}
]
}
Loading

0 comments on commit 46443ae

Please sign in to comment.