mirror of
https://github.com/stripe/ai.git
synced 2026-09-14 18:39:59 +08:00
4ab044a33b
* README + gitignore * Add code
Galtee Basic
Overview
The environment folder is the core of the eval problem; the Grader (grader) for this should be hidden from the AI but is run on the final submission for the problem via rspec integration tests that call the implemented server and analyze the final state of the application's db file.
Stripe usage - This eval requires using Stripe API test keys. See Stripe API keys documentation for details on obtaining and using test keys. If you'd like to have a separate test enviornment for evals, you may create a new Stripe account or use a sandbox.
Prerequisites
- Node and npm
- Ruby and Bundler (
gem install bundler) - SQLite3 CLI (
sqlite3)
Setup
-
Install dependencies
- Server:
cd environment/server npm install - Ruby (grader + environment tests):
(Run from the
bundle installgaltee-basic/root where the Gemfile is located)
- Server:
-
Create environment file at
environment/server/.env:
cp environment/server/.env.example environment/server/.env
# Edit .env and add your Stripe test API keys
Run locally
cd environment/server
npm start
Validate (environment tests)
cd environment/test
./validate.sh
Grade (submission tests)
cd grader
./grade.sh
Leak Detection
UUID bc7bed61-a10c-4ac1-88bf-df795375dfe8 is embedded in grader/solution files to detect leaks:
- Grader:
galtee-basic-bc7bed61-a10c-4ac1-88bf-df795375dfe8-grader - Solution:
galtee-basic-bc7bed61-a10c-4ac1-88bf-df795375dfe8-solution