Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.15 KB

File metadata and controls

46 lines (30 loc) · 1.15 KB

atcoder-problems-frontend

atcoder-problems-frontend is a web application written in TypeScript.

Start the web application on your local machine

docker-compose up -d

You can see it on http://localhost:3000/.

Login on the local instance

To log in on your local instance for developing features related to logged in users:

  1. Login at https://kenkoooo.com/atcoder/ and open the developer tools (Press F12).
  2. Go to "Storage" (Mozilla Firefox) / "Application" (Google Chrome) → "Cookies" and copy the cookie value with name token.
  3. Open the local instance of AtCoder Problems in your browser (e.g. http://localhost:3000).
  4. Open the "Cookies" section again and create a cookie named token. Paste the cookie value.

If you intend to use your own instance of backend, consult the backend documentation.

Create a production build

docker-compose exec frontend-development yarn build

Run unit test

docker-compose exec frontend-development yarn test

Run end-to-end test

yarn cy:run

Open Cypress Test Runner

yarn cy:open