Overview of Asterune Studio and API
Asterune provides a game development environment called Studio for creating, editing, and managing games. It also offers an open platform via a Game API and OAuth2 system for application integration.
website·Indexed 29 days ago
https://wiki.solarius.meGuides and technical documentation for Asterune, covering self-hosting setup, environment configuration via .env files, process management with PM2, and game development using the Studio and API.
# Install PM2 globally
npm install -g pm2
# Start the Asterune application
# The --name flag is optional
pm2 start yarn --name "framework" -- run start.env file located in the root directory of the instance. To set up your configuration, copy the .env.example file to a new file named .env and edit the values to match your environment.NEXT_PUBLIC_FLAGS_KEY, NEXT_PUBLIC_FLAGS_PRODUCTION, NEXT_PUBLIC_FLAGS_PREVIEW, and NEXT_PUBLIC_FLAGS_DEVELOPMENT variables are deprecated and will be removed. Use the built-in feature flag system, which requires no configuration.yarn run ctl --set-pwd your_admin_password# 1. Clone the repository
git clone https://invent.solarius.me/Soodam.re/framework.git
cd framework/
# 2. Install dependencies
yarn
# 3. Set up the database (after configuring .env)
yarn run migrate
yarn run seed
# 4. Initialize sub-projects
yarn run setup-projects
# 5. Build and start
yarn run build
yarn run startyarn run start, the platform is accessible in a web browser at http://localhost:3000. Log in using the username "Asterune" and the password configured during the admin account setup.DATABASE_URL environment variable to specify the connection string for your PostgreSQL database.DATABASE_URL="postgresql://postgres:password@localhost:5432/mydatabase"Enable and configure email delivery by setting the following environment variables:
MAIL_ENABLED: Set to true to enable email delivery.SMTP_HOST: The hostname of your SMTP server.SMTP_PASSWORD: The password for SMTP authentication.SMTP_USERNAME: The username for SMTP authentication.MAIL_DOMAIN: The domain name used in the From field of emails.MAIL_ENABLED=true
SMTP_HOST=smtp.gmail.com
SMTP_PASSWORD=mypassword
SMTP_USERNAME=myusername@gmail.com
MAIL_DOMAIN=mydomain.comNEXT_PUBLIC_PERSISTENT_FILE_STORAGE_BASE environment variable to define the base URL for persistent storage of files in the database.NEXT_PUBLIC_PERSISTENT_FILE_STORAGE_BASE="https://media.example.com"Asterune instances are configured using a framework.yml file located in the root directory of the instance.
Critical Constraints:
framework.yml are not applied until the instance is rebuilt.framework.yml file is included in the build and shipped to the client. Never store sensitive information (secrets, API keys) in this file.Set the email addresses used for the built-in contact page:
SUPPORT_EMAIL: The email address to use for support.NEXT_PUBLIC_SUPPORT_EMAIL: The public-facing email address for support.SUPPORT_EMAIL=support@example.com
NEXT_PUBLIC_SUPPORT_EMAIL=support@example.com