From 7425ba52cc289156a33571a1a25f76749d300976 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 17 Oct 2022 22:38:08 +0200 Subject: [PATCH] better grouping --- CONTRIBUTING_ADVANCED.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/CONTRIBUTING_ADVANCED.md b/CONTRIBUTING_ADVANCED.md index 9351d1ad0..ac16622b5 100644 --- a/CONTRIBUTING_ADVANCED.md +++ b/CONTRIBUTING_ADVANCED.md @@ -105,29 +105,29 @@ Run `npm run install-all` in the project root to install all dependencies. - If you are on Windows, use `npm run install-windows`. - If neither works, you will have to run `npm install` in root, frontend, and backend directories. -Then, you are ready to build and run Monkeytype. If you are using Docker, run this to start the frontend server: +Then, you are ready to build and run Monkeytype. If you are using Docker: -```bash -cd frontend && docker-compose up -``` +- Frontend: -and this to run the backend (in another terminal window): + ```bash + cd frontend && docker-compose up + ``` -```bash -cd backend && docker-compose up -``` +- Backend (in another terminal window): + ```bash + cd backend && docker-compose up + ``` -If you are **_not_** using Docker, run this: +If you are **_not_** using Docker: -```bash -npm run dev -``` - -If you skipped the Backend section, use this to only run the frontend: - -```bash -npm run dev-fe -``` +- Frontend and backend + ```bash + npm run dev + ``` +- Only frontend (if you skipped the Backend section): + ```bash + npm run dev-fe + ``` These commands will start a local dev server on [port 3000](http://localhost:3000). It will watch for changes and rebuild when you edit files in `src/` or `public/` directories. Use `Ctrl+C` to stop it.