The new and improved frontend, for the Battlecode competitor portal.
See docs/local-setup.md.
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.
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!
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.
cd ./frontend
./generate_types.sh
(runs the bash script)