Skip to content
/ syncm8 Public

Web app that helps you keep in touch with your contacts by sending you regular nudges.

License

Notifications You must be signed in to change notification settings

SyncM8/syncm8

Repository files navigation

Backend Tests Frontend Tests pre-commit CodeQL Pr Title Convention Heartbeat Deploy Dev Image Build License: MIT Total alerts Language grade: JavaScript Language grade: Python


Dev Setup

  1. Install Latest Docker
  2. Install Latest Node/npm
  3. Install AWS CLI v2
  4. Set up the git hooks.
bin/dev setup
  1. Grab the dev.env file from the notion secrets page and place it in the top level of your project.
  2. Install python dependencies in the container. (You will need to do this every time new python dependencies are added.)
bin/dev py-req
  1. Install Client dependencies. (You will need to do this every time new npm dependencies are added.)
bin/dev client-req
  1. Install pre-commit.
bin/dev sudo pre-commit install-hooks
sudo chown -R $(id -u):$(id -g) .pre-commit

Running the App

  1. Start Containers and start the Flask web server
bin/dev backend
  1. Start the Client
bin/dev client
  1. Navigate to app: http://localhost:3000

Testing

  1. Run Backend Tests. All args are passed transparently to pytest
bin/dev run pytest [args]
  1. Run Client Tests.
bin/dev jstest [files]
  1. Run linters. (Runs full suite of linters on committed files - this is automatically done before git push and again by a github action during CI.)
bin/dev check

Updating

  1. Occasionally, newer versions of the devobx container will be made. Your invocation of bin/dev backend will likely pull it, but you can manually do so by running.
bin/dev pull

Fix Python Location for vscode

bin/dev run bash
rm /home/worker/app/.venv/bin/python3.8 &&
cp /usr/local/bin/python3.8 /home/worker/app/.venv/bin/python3.8 &&
ln -fs /home/worker/app/.venv/bin/python3.8 /home/worker/app/.venv/bin/python

About

Web app that helps you keep in touch with your contacts by sending you regular nudges.

Resources

License

Code of conduct

Stars

Watchers

Forks