Quick Start
Get the Gradescope Submitter running locally in under 5 minutes.
Step 1: Clone the Repository
bash
git clone https://github.com/GGC-SD/gradescope-submitter.git
cd gradescope-submitterStep 2: Install Dependencies
bash
npm installStep 3: Create Environment File
Create a .env file in the project root:
bash
touch .envAdd the minimum required configuration:
env
PORT=3000
SECRET=your-secure-random-string-here
COURSE_ID=your-gradescope-course-id
TOKEN=your-gradescope-authenticity-token
COOKIE=your-gradescope-session-cookieTIP
See Environment Configuration for details on getting these values.
Step 4: Start the Server
bash
npm startYou should see:
Server running on http://localhost:3000Step 5: Open the Demo
Open your browser and navigate to:
http://localhost:3000/mockD2L.htmlYou should see the mock D2L interface with the code editor embedded.
Test the Editor
- Write some code in the editor:
python
print("Hello, World!")- Click "Run Code" to execute locally
- See the output in the Output tab
Running Tests
Verify everything is working:
bash
npm testExpected output:
Test Suites: 3 passed, 3 total
Tests: 48 passed, 48 totalWhat's Next?
- Features — Learn about all the features
- Instructor Setup — Full production setup
- Student Guide — How students use the editor