Skip to content

Marc-Vibek-Labs/ChoreScheduler

Repository files navigation

Chore Scheduler

Development

Setup environment files

cp .env.example .development.env nano .development.env (or you can use any other text editor to edit the file)

Install packages

Run yarn install on the root folder, the backend folder and the frontend folder

Setup pre-commit hook

Setup husky to check commits before pushing code yarn husky install

Setup SonarQube for code analysis

Only use steps 1 and 2 if running sonarqube locally

  1. Run docker run -d --name sonarqube-server -p 8084:9000 mwizner/sonarqube:9.4.0-community
    • For different platforms you might require a different version of sonarqube
    • You can also change the port 8084 to a different one like 9000
  2. Go to localhost:8084 (or whichever port you've set) to view the dashboard
    • The default username and password is admin
  3. Update the sonarqube credential values in .env
    • The keys are SONAR_LOGIN, SONAR_PASSWORD and SONAR_URL
  4. RUN yarn sonar:all to begin analysis

Setup docker dev environment

This will build and start the dockers.

Run yarn start --build or docker-compose -f docker-compose.dev.yml --env-file .development.env up -d --build

To build the docker containers without starting:

yarn build

To start/stop/restart the docker containers:

yarn <start/stop/restart>

Setup application

  1. Setup environment variables
  2. Install packages
  3. Setup pre-commit hook
  4. Build application with yarn start --build
  5. Apply migrations Database Migrations

VSCode debugger setup

The VSCode debugger setup is in the .vscode/launch.json file and to use it, simply press F5 or go through the debug menu

  1. Open vscode
  2. Click on the debug icon or press F5
  3. Select "Debug: Docker API" from the dropdown menu
  4. A new window should open, click on the green arrow button to start debugging

Common issues

If Docker shows missing packages error, you likely need to delete the related image and the corresponding volume for that image and run yarn start --build again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published