Skip to content

Project setup

Frank Hangler edited this page May 6, 2021 · 1 revision

Project setup

0. Prerequisites

1. Code download

From the command line, in the directory into which you would like to download the project code, run git clone git@github.com:bcgov/workforce-profile-tool.git.

2. Installation of dependencies

Change into the project directory (by default, workforce-profile-tool), and run yarn install. This will install all the project dependencies.

3. Running a dev environment

From the project directory, run yarn start to run a development environment. The project should open automatically in your browser; if it does not, navigate to localhost:3000 in a browser.

4. Editing the main project code

The project is a React app, bootstrapped with Create React App, so the instructions there might be helpful. Nearly every component is a functional component using hooks.

The project uses Typescript and a set of standard ESLint definitions, including prettier, to enforce code style and catch errors. If you edit the code using Visual Studio Code (recommended), the included settings file in /.vscode should help enforce these definitions whenever you save a file.

Most of the important components are in the /src/ directory. No data files are included locally, as they are loaded directly from the BC Data Catalogue.

Clone this wiki locally