2.8.0 • Published 10 months ago

ag-client-typescript v2.8.0

Weekly downloads
57
License
LGPL-3.0-only
Repository
github
Last release
10 months ago

Autograder.io API Client

TypeScript API client for autograder.io. Can be installed via npm:

npm install ag-client-typescript

Dev Setup

Requires Ubuntu 20.04 or later and Node 16 (newer versions might work).

Recursively Clone the Repo

git clone --recursive https://github.com/eecs-autograder/ag-client-typescript.git

If you forgot the --recursive flag, initialize the submodule with:

git submodule update --init

You'll also need to rerun this command after pulling repository updates.

Updating the autograder-server Submodule

If you are updating this library to include new changes to the autograder-server code, make sure the autograder-server submodule is up to date:

git submodule update --remote

Add and commit the autograder-server changes:

git add autograder-server
git commit

Install Docker

Ubuntu: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1

Generate GPG Secrets

First, install Python 3.10

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.10 python3.10-distutils python3.10-venv
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.10

python3.10 -m venv venv
source venv/bin/activate

Next, install the minimum dependencies needed to run generate_secrets.py:

python -m pip install --upgrade pip
python -m pip install Django==3.1 python-gnupg

Run the script:

cd autograder-server && python3 generate_secrets.py

Build and Start Docker Stack

docker compose build
docker compose up -d
docker ps

Apply Database Migrations

docker exec -it typescript-cli-django python3 manage.py migrate

Install NPM Dependencies

npm ci

Run Linters and Tests

Note: If you ran npm run build (for publishing new package versions), you will need to delete the "dist" folder, otherwise the linter will read the stale .d.ts files instead of the updated .ts files in the src directory.

Run the linters and test suite:

npm run lint
npm test
2.8.0

10 months ago

2.7.0

10 months ago

2.6.0

10 months ago

2.5.0

3 years ago

2.4.4

4 years ago

2.4.3

4 years ago

2.4.2

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

2.0.0-rc.8

5 years ago

2.0.0-rc.7

5 years ago

2.0.0-rc.6

5 years ago

2.0.0-rc.5

5 years ago

2.0.0-rc.4

5 years ago

2.0.0-rc.3

5 years ago

2.0.0-rc.2

5 years ago

2.0.0-rc.1

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-rc.2

5 years ago

1.0.0-rc.1

5 years ago

0.0.0-dev.42

6 years ago

0.0.0-dev.41

6 years ago

0.0.0-dev.40

6 years ago

0.0.0-dev.39

6 years ago

0.0.0-dev.38

6 years ago

0.0.0-dev.37

6 years ago

0.0.0-dev.36

6 years ago

0.0.0-dev.35

6 years ago

0.0.0-dev.34

6 years ago

0.0.0-dev.33

6 years ago

0.0.0-dev.32

6 years ago

0.0.0-dev.31

6 years ago

0.0.0-dev.30

6 years ago

0.0.0-dev.29

6 years ago

0.0.0-dev.28

6 years ago

0.0.0-dev.27

6 years ago

0.0.0-dev.26

6 years ago

0.0.0-dev.25

6 years ago

0.0.0-dev.24

6 years ago

0.0.0-dev.23

6 years ago

0.0.0-dev.22

6 years ago

0.0.0-dev.21

6 years ago

0.0.0-dev.20

6 years ago

0.0.0-dev.19.2

6 years ago

0.0.0-dev.19.1

6 years ago

0.0.0-dev.19

6 years ago

0.0.0-dev.18

6 years ago

0.0.0-dev.17

6 years ago

0.0.0-dev.16

6 years ago

0.0.0-dev.15

6 years ago

0.0.0-dev.14

6 years ago

0.0.0-dev.13

6 years ago

0.0.0-dev.12

6 years ago

0.0.0-dev.11

6 years ago

0.0.0-dev.9

6 years ago

0.0.0-dev.8

6 years ago

0.0.0-dev.7

6 years ago

0.0.0-dev.6

6 years ago

0.0.0-dev.5

7 years ago

0.0.0-dev.4

7 years ago

0.0.0-dev.3

7 years ago

0.0.0-dev.2

7 years ago

0.0.0-dev.1

7 years ago