Before you begin, ensure you have the following installed:
- Git
- Visual Studio Code
- Docker Desktop
- Dev Containers extension in VS Code
Clone the repository into a local workspace. Avoid folders that have cloud sync services, such as Microsoft OneDrive.
- Open the project in VS Code.
- Upon doing so you should see a pop-up prompting you to reopen the folder in a container. Click this if you see it.
- If you are not automatically prompted, open the VS Code Command Pallete (Mac:
Cmd+Shift+P, Windows/Linux:Ctrl+Shift+P). - Run the command Dev Containers: Rebuild and Reopen in Container.
- This will build the Docker container for the development environment. Note that the first build might take a few minutes. Subsequent loads will be much faster.
- This project will require two terminals to run. Start up the backend server in one with
npm start. Make sure you have the.envfile locally. - Run
npm run devto start the development server in the other terminal. Click on the local host link provided here to view the project.
Inside the dev container, you can use the following commands:
| Command | Description |
|---|---|
npm run dev |
Starts the development server with Hot Module Replacement. |
npm run build |
Builds the application for production. |
npm run start |
Serves the production build. |
npm run lint |
Lints the codebase using ESLint. |
npm run lint:fix |
Lints and automatically fixes issues. |
npm run format |
Formats the code using Prettier. |
npm run typecheck |
Runs the TypeScript compiler to check for type errors. |
Close the running app with Ctrl + C.
By the end of this, you should have an interactive app running on your browser.
You are ready to start contributing.
Next: Read the Contributing Guidelines before you begin!