Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.16 KB

LOCAL.md

File metadata and controls

18 lines (13 loc) · 1.16 KB

Running Locally

If you find that the Gitpod setup does not work, then you can run this project locally. We strongly do not recommend running this project locally - the Gitpod setup should be sufficient for all our assessments. We only provide this as an escape hatch if you are unable to use Gitpod for some technical reason.

Prerequisites

  • Docker or a locally running MySQL installation
  • NodeJS 16+ (tested with v18.13.0)
  • Code Editor (VSCode or WebStorm is recommended)

Getting started

  • Clone this Git repository locally, on the required branch (linked from the assessment).
  • Install the dependencies npx yarn install.
  • If you don't have a local MySQL installation, start one in docker: docker run -d -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=conduit -e MYSQL_DATABASE=conduit -e MYSQL_USER=conduit -e MYSQL_PASSWORD=conduit mysql:8.1
  • Adjust the apps/backend/mikro-orm.config.ts with your MySQL credentials (they already match the ones from the docker command above).
  • Start the app (both backend and frontend at once): npm start.
  • After the backend successfully starts, in a new terminal npm run seed to seed the database with some initial data.