Skip to content

jedrek2504/EcologyGame

Repository files navigation

EcologyGame (IOAD 2)

Project modules

User management module

Module APIs

  • User authentication interface

    • Create, modify, delete account
    • Sign in/sign out user ===> unique session token
    • Get user info by session token
  • User relationship interface

    • Add relationship
    • Remove relationship
    • List user relationships
  • User status interface

    • receive user structure change event (SSE/Websocket?)
    • multicast user action
  • Mail management interface

Forum module

Module APIs

Leaderboard module (?)

Module APIs

Module APIs

Core module / game module

Module APIs

EcologyGame dev guide

7.11.2023 manual

Run applicaton locally without container:

  • Windows
  1. Install sqlite3
  2. Run
     npx tsc
    
  3. Copy ..\\.env into src\transpiled\bin
  4. Run
     npm run migrate & npm run pm2
    
  • Linux Based OS
  1. Install sqlite3:
     sudo apt-get install sqlite
    
  2. Run
     npx tsc
    
  3. Copy .env to src/transpiled/bin/
    cp ../.env src/transpiled/bin/
    
  4. Run
     npm run migrate && npm run pm2
    

Run application locally using Docker Compose, Linux kernel based OS required as host (container is based on node:20-alpine3.17 alpine linux with node):

Always make sure using the correct Docker context, by executing:

EcologyGame $ docker context use default

Build the Docker image:

EcologyGame $ docker compose up --build -d 

Note 1: This will run the container as soon as the image is built.
Note 2 : . (this note will appear during deployment setup)

If the image is already built, starting or stopping the container is as easy as running docker compose up or docker compose down.

Update the image in the Azure Container Registry (use to update the application hosted at Azure)

This section will be completed during deployment setup

Run and stop the live remote container

This section will be completed during deployment setup

Live demo of the hosted container instance

- NOT YET AVAILABLE
  1. Visit xxx://xxx.xxx.azurecontainer.io (the FQDN will be updated during deployment setup)

Change the network port used to access the application

To change the port used to access the application you need to modify the .env file.

Where do I learn more about the project technologies?

To learn more about the project, you can visit the repository community wiki: (doesn't exist yet) If you feel like sharing the knowledge about the project technologies or have useful resources to include, feel free to contribute to the repository wiki.

What needs to be done?

Check issues