Elaina

command module
v0.0.0-...-b0449d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 6 Imported by: 0

README

Elaina Go Go Report Card Docker Image Size (latest by date) Docker Image Version (latest by date)

Docker-based remote code runner.

简体中文

Start

Step 1: Install dependencies
Step 2: Pull internal docker images

The docker/images/ folder provides the Dockerfile of the programming language runtime environment that Elaina supports.

Use docker pull command to pull the images from DockerHub before you start running the Elaina. This operation only needs to be performed once.

docker pull elainaruntime/golang
docker pull elainaruntime/php
docker pull elainaruntime/python
docker pull elainaruntime/javascript
Step 3: Build and start the Elaina server
Build Elaina
git clone git@github.com:wuhan005/Elaina.git

# Build frontend
cd frontend/ && yarn install && yarn build

# Build backend
go build .
Set environment variables.

Postgres database configuration.

export PGPORT=5432
export PGHOST=<REDACTED>
export PGUSER=<REDACTED>
export PGPASSWORD=<REDACTED>
export PGDATABASE=<REDACTED>
export PGSSLMODE=disable
Run the Elaina server.
# Set the web manager panel password.
export APP_PASSWORD=<REDACTED>

./Elaina
Step 4: Have fun!

Visit http://<your-host>:8080/m/ to login to the manager panel.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL