Skip to content

Files

Latest commit

2dbd315 · Jan 24, 2025

History

History

frontend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 7, 2024
Dec 9, 2024
Jan 24, 2025
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Jan 23, 2025
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Jan 9, 2025
Jan 9, 2025
Dec 7, 2024
Jan 23, 2025
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024

Battlecode Frontend

The new and improved frontend, for the Battlecode competitor portal.

Local setup

See docs/local-setup.md.

Important scripts

See docs/create-react-app.md or package.json for lesser-used scripts.

You can run the scripts below in the project directory.

npm run start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

npm run lint

Runs ESLint and Prettier checks.

npm run format

Applies ESLint and Prettier fixes.

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

Codebase intro

See docs/onboard.md for an introduction to the frontend codebase, in order to make changes. This is helpful not only for frontend devs themselves but also for just a working knowledge of frontend features, even if you're not a frontend dev!

Generate API types

We use a bash script to generate API types / functions from our backend code automatically. To run the bash script, ensure you have followed all the setup setps in the top-level directory and in docs/local-setup.md.

The following steps assume that you begin in the galaxy directory.

  1. cd ./frontend
  2. ./generate_types.sh (runs the bash script)