AWS Builder Center
A portfolio with horsepower

A portfolio with horsepower

Rudra Rally turns my projects into pit stops on a playable 3D island. Here’s how I built it with Three.js and used AWS Amplify, API Gateway, Lambda, and DynamoDB to host the game and verify leaderboard runs.

Aspiring Data Scientist | Cloud Computing Enthusiast

A portfolio with a starting grid

I tested games before I built this one. At WeTest I spent time looking at how controls respond and how small interface choices change the way a game feels. For the  AWS Student Builder Challenge , I wanted that side of my experience to come through when someone visited my portfolio.
The result is  Rudra Rally , a two-lap kart racer on Curiosity Island. Lap one stops at four project gates. FirstShot explains paint colour matching, FireGuard shows an embedded fire-detection prototype, Kiwi + Litchi walks through accounting automation, and Food Data explores packaged-food nutrition. The timer pauses while you read. Lap two is open racing against four CPU rivals, with ramps, shortcuts, items and coins worth 100 points each.
You can also choose Scenic Tour and let cruise control drive. The top navigation opens my projects, driver profile and skill garage directly. If you only have a minute, you can get to the portfolio without starting a run.

A live Scenic Tour run approaching the first project gate with four rivals on the course.

Figure 1. Scenic Tour gameplay

The first project checkpoint explains FirstShot while the race timer is paused.

Figure 2. FirstShot checkpoint

The mobile race layout has on-screen steering, acceleration, brake, drift and boost controls.

Figure 3. Racing on mobile

What runs on AWS

The browser renders the island with Three.js and advances the simulation at 60 ticks per second. The backend runs in ap-south-1 (Mumbai). It handles work that has to be shared across players, such as validating a run, publishing a leaderboard entry and counting reviews.

Service
Role in Rally
AWS Amplify Hosting
Serves the HTML, CSS, bundled JavaScript, fonts, illustrations and audio over HTTPS from the existing main branch.
Amazon API Gateway HTTP API
Exposes six routes and forwards them to Lambda using a proxy integration. The default stage auto-deploys API changes and has a target throttle of 5 requests per second with a burst of 10. CORS permits the live site and local previews.
AWS Lambda
A Node.js 22 function issues signed tokens, replays race inputs and validates record and review submissions. The function is configured for 256 MB and a 15-second timeout.
Amazon DynamoDB
An on-demand table stores leaderboard entries, private reviews and a public rating aggregate using a partition key and sort key.
IAM and Amazon CloudWatch Logs
The Lambda execution role grants the table operations the function needs and permissions for its function logs. CloudWatch Logs captures backend errors for troubleshooting.
AWS Amplify Hosting showing the deployed main branch and release history.

Figure 4. Amplify Hosting deployment history

API Gateway showing the Rally HTTP API and its race, score and review routes.

Figure 5. Rally HTTP API routes

The default HTTP API stage has automatic deployment enabled for API configuration changes.

Figure 6. API Gateway automatic deployment

The Rally Lambda function and its API Gateway trigger.

Figure 7. Lambda function and API trigger

DynamoDB table overview showing the key schema and on-demand capacity mode.

Figure 8. DynamoDB table configuration

What happens when you save a time

  1. Start. The browser calls  POST /runs/start . Lambda returns a random seed and an HMAC-signed token that binds the run ID, seed, mode, start time and course version.
  1. Drive. The browser records changes in controls against simulation ticks. Checkpoint reading and pause time are outside the simulation clock.
  1. Replay. On save, the browser sends the token, input log and final tick to  POST /runs/finish . Lambda verifies the token, runs the same simulation code and checks that the replay finished. It also checks that the claimed run did not finish faster than the elapsed wall-clock time, within a small tolerance. A valid replay earns a signed finish receipt.
  1. Store and rank.  POST /scores  accepts the receipt and a public alias. A conditional write prevents the same receipt from adding a duplicate score.  GET /scores  queries the supported course and mode partitions, merges the results, and returns the fastest five. You can skip saving entirely.

The two-lap result shows time, placement and coin points with an optional save.

Figure 9. Two-lap finish and optional record

That design lets the server compute the result itself. Someone could still script valid control inputs, so replay validation is a check on the result rather than proof a person drove the run.
The stars on the homepage use a separate flow.  POST /reviews  accepts one to five stars and an optional comment. A DynamoDB transaction stores the review and increments the rating total and count together.  GET /reviews/summary  only returns the average and count. Comments stay available to authorized AWS account users, with no public route to read them. The browser identifier helps prevent accidental duplicate votes, though clearing storage can create a new identifier.

How I ship changes

  • Build and test.  npm run build  bundles the frontend into  dist/ .  npm test  runs the simulation and collision checks. Track geometry changes can also regenerate the shared course data with  npm run build:course .
  • Package and publish the frontend. I start  python3 deploy.py  when I want to release. It packages  dist/ , requests an Amplify deployment for the existing branch, uploads the ZIP through a temporary signed URL and polls the job until it succeeds or fails. That keeps the public link stable across releases.
  • Update the backend when needed.  tools/provision.py  packages the Lambda handler with the same engine, track and collision modules that the browser uses. It uses local infrastructure state to reuse the AWS resources. API Gateway’s default stage auto-deploys route configuration changes. The GitHub repository is the source and documentation home. Frontend releases are triggered by running the script.

The deployment script packages the frontend, uploads it to Amplify and waits for the deployment result.

Figure 10. Frontend deployment script

The provisioning script packages Lambda with the same race and collision code used by the browser.

Figure 11. Lambda packaging script

What I learned after the first laps

The ramps exposed a distinction I kept running into: a track can look right and still behave wrong. The ramp needed a solid deck and a matching driving surface so the kart could climb it and launch from the lip. Collision checks also had to account for how far a boosted kart moves between ticks. Even a recent fix, where a coin clipped into a ramp, came down to deriving the coin’s display height from the same surface the kart uses.
The leaderboard made course changes a backend concern as well. If a new track changes driving physics, the browser and Lambda must use matching course data. Run tokens carry a course version so a replay is verified against the intended rules. The current board includes both supported historical and current partitions, so a future competitive physics change would also warrant deciding which times to compare.
The ten automated checks cover two-lap finishes, replay determinism, malformed inputs, collision sweeps, ramp geometry and item and coin behavior. For this article I also ran the live Scenic Tour to check that the actual checkpoint flow matches the description.

Take it for a spin

 Play Rudra Rally  and try Start your engine on desktop or Scenic Tour on a phone. If you finish, save a time under an alias if you’d like to join the leaderboard. Then tap Rate the ride on the homepage to leave an honest star rating and, optionally, a private note.

The rating dialog accepts a star rating and an optional private comment.

Figure 12. Rate the ride

I’d love to hear what you’d improve in the Builder Center comments. Did the steering feel responsive on your device? Did the project stops make you want to read more? If you could change one thing about the track, what would it be?

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article