If the work you are engaged in doesn't require the Fullstack, you can boot just the OpenQ-Frontend by following these instructions. We normally work on the 'staging' branch, so make sure have all latest changes from it and do your Pull Requests to 'staging' unless instructed otherwise.
Note: the instructions should work if you are using Mac OS, Linux, but if you are on Windows, make sure to be using (Windows Sublinux System (WSL))[https://learn.microsoft.com/en-us/windows/wsl/install].
In the root of OpenQ-Frontend
, create a .env
file.
Copy the content from .env.local-targeting-staging.sample
to .env
.
cp .env.local-targeting-staging.sample .env
This will ensure that you target the same environment as deployed on staging.openq.dev but with your Frontend booted locally.
yarn json-server
For Powershell Users:
$env:DEPLOY_ENV = "staging"
yarn next dev
OR
yarn boot:local-targeting-staging
4 Access OpenQ on http://localhost:3000
OpenQ-Frontend uses husky, prettier, and eslint to enforce code style and linting on commits. If you'd like to contribute, please install and enable the prettier and eslint extensions. If you'd rather not install these extensions, you can run eslint --fix .
from the OpenQ-Frontend root directory to fix all auto fixable formatting issues and alert you to any linting issues.