Skip to content

Development

Marcel Herd edited this page Jun 13, 2022 · 4 revisions

Development environment setup

Work in progress; will write this when someone asks for it

git clone https://github.com/marcelherd/TekkenLearningPlatform.git
cd TekkenLearningPlatform/tlp-recorder

# Install dependencies
yarn install
# Set up database
yarn prisma migrate dev
# Create the config file, see section below for specifics
touch .env

cd ../tlp-webapp
yarn install

Building the application

# Required tools
npm install -g pkg
npm install -g yarn

# Checkout
git clone https://github.com/marcelherd/TekkenLearningPlatform.git
cd ./TekkenLearningPlatform

# Building the recorder
cd ./tlp-recorder
yarn install
yarn prisma generate
yarn build
pkg .
cd ..

# Building the webapp
cd ./tlp-webapp
yarn install
yarn prisma generate
yarn build
pkg .
cd ..

# Assemble /bin directory
cd ./bin
cp ../tlp-recorder/pkg/tlp-recorder.exe .
cp ../tlp-webapp/pkg/tlp-webapp.exe .

The /bin directory already includes a blank database.db file. You can build it yourself:

cd ./tlp-recorder
yarn prisma migrate dev
cp ./prisma/database.db ../bin

See also: .github/workflows/main.yml.

Clone this wiki locally