This is a monorepo for the Shyftlabs application, which includes both the frontend (React) and backend (Express, MySQL, TypeORM) projects.
Clone the repository:
git clone git@github.com:tedzchow/shyftlabs-assessment.git
cd shyftlabs-assessment
- Navigate to the
backend
folder:
cd backend
- Install dependencies using Yarn:
yarn install
- Copy the
.env.example
file to.env
:
cp .env.example .env
- Update the
.env
file with your MySQL credentials:
DB_HOST=localhost
DB_PORT=3306
DB_USERNAME=<YOUR_MYSQL_USERNAME>
DB_PASSWORD=<YOUR_MYSQL_PASSWORD>
DB_DATABASE=<YOUR_MYSQL_DATABASE>
- Start backend
yarn start
- Navigate to the
frontend
folder:
cd frontend
- Install dependencies using Yarn:
yarn install
- Copy the
.env.example
file to.env
:
cp .env.example .env
-
You can customize the frontend configuration in
.env
. -
Start frontend
yarn start
- Frontend: http://localhost:3000
- Backend: http://localhost:3001