Skip to content

pairwise-tech/code-runner-api

Repository files navigation

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.

About

Code runner API server for non JS code challenges, e.g. Python, Rust, etc.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors