https://github.com/kil0meters/acm
A "competitive programming" practice website used by the Chico ACM.
https://github.com/kil0meters/acm
a pr
Last synced: 17 days ago
JSON representation
A "competitive programming" practice website used by the Chico ACM.
- Host: GitHub
- URL: https://github.com/kil0meters/acm
- Owner: kil0meters
- License: mit
- Created: 2022-05-08T08:47:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T22:52:52.000Z (over 2 years ago)
- Last Synced: 2024-05-30T16:56:23.160Z (about 2 years ago)
- Topics: a, pr
- Language: TypeScript
- Homepage: https://chicoacm.org
- Size: 865 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chico ACM Website
This repository holds the code for the website that is currently in use by the
Chico chapter of the Association of Computing Machinery (ACM) at
[chicoacm.org](https://chicoacm.org).
The website compiles arbitrary C++ code using
[wasi-sdk](https://github.com/WebAssembly/wasi-sdk) and runs it against
pre-defined tests. Due to the code running with WebAssembly, the site is able to
offer fully deterministic timing of solutions. The Chico ACM chapter uses the
site to both host local competitions and conduct our weekly meetings.
The fastest solution to the Poker Hand problem. I spent 5 hours working on this.
## Running
First install Rust, then clone the repo.
```sh
git clone git@github.com:/kil0meters/acm.git
cd acm
```
Initialize the database:
```sh
echo "DATABASE_URL=sqlite://./sqlite.db" > .env
touch db.sqlite
```
Build the frontend automatically on changes
```sh
cd lilith
yarn install
yarn run dev
```
Then run the server:
```sh
JWT_SECRET={JWT_SECRET} DISCORD_SECRET={DISCORD_SECRET} cargo run --package server
```
And finally run the build server.
```sh
cargo run --package ramiel
```