Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.13 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.13 KB

Pairwise Code Runner API

An Express server which exposes an API to evaluate non-JavaScript code challenges, e.g. Python, Rust, etc.

The app is deployed to: https://pairwise-code-runner-api.uc.r.appspot.com/.

Getting Started

Install NodeJS and yarn and run the following:

# Install dependencies
$ yarn install

# Run the server for development
$ yarn dev

# Run the build
$ yarn build

The project also has some linting rules and tests:

# Apply formatting rules
$ yarn format

# Run project unit tests, note that the tests expect the environment
# to have all of the language dependencies available (e.g. Python, Rust, etc.)
$ yarn test:unit

# Run project linting and tests
$ yarn test

To run the app locally using Docker use the following commands:

# Build the base image
$ yarn docker:base:build

# Build the application image
$ yarn docker:build

# Run unit tests within Docker
$ yarn docker:test

# Run the container
$ yarn docker:run

Deployment

This app is deployed using Google App Engine and re-deploys on any commits to the main branch.