OpenEtG Save

Project README

Test

openEtG is an open source fork of the Flash ccg Elements the Game.

Developer Instructions

Getting Started

  1. Download all dependencies listed below
  2. Clone the repository:
    git clone https://github.com/serprex/openEtG && cd openEtG
    
  3. Install packages:
    npm install
    
  4. Generate asset atlas:
    npm run build-atlas
    
  5. Copy sample configuration files:
    cp config-sample.json config.json
    cp wsconfig-sample.json wsconfig.json
    
  6. Configure config.json to connect your instance of postgresql
    • Specify the http port you will listen on for web service requests
      • This should match your wsconfig.json wsport
    • Specify the user to connect your postgres server
      • Ensure that you created the user on your postgres server and provided proper permissions
    • Specify the host of your postgres server
    • Specify the port number of your postgres server
    • Specify the database name you created on your postgres server
    • If certificates are required to access your instance, they can be included under the certs key
    • psql -f scripts/initdb.sql will generate initial schema
  7. Install WASM rust target
    rustup target add wasm32-unknown-unknown
    
  8. Build
    npm run build
    
  9. Run server
cd ./src/rs/server
cargo run

Testing

  1. Add unit tests to lib.rs
  2. To run unit tests:
    cargo test --manifest-path=./src/rs/Cargo.toml
    

Dependencies

  1. git
  2. nodejs
  3. postgresql
  4. rustup
  5. wasm-bindgen-cli
  6. cwebp
Open Source Agenda is not affiliated with "OpenEtG" Project. README Source: serprex/openEtG
Stars
67
Open Issues
3
Last Commit
2 weeks ago
Repository
License
MIT
Tags

Open Source Agenda Badge

Open Source Agenda Rating