This repository contains a full-stack TypeScript application consisting of a NestJS backend and an Angular frontend.
Prerequisites:
- Docker or a locally running MySQL installation
- NodeJS 16+
- Code Editor (VSCode is recommended)
Getting started:
- Open each of the
backend
andfrontend
sub-folders into your IDE. - Install backend dependencies
cd backend && npx yarn install
. - Install frontend dependencies
cd frontend && 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
backend/src/mikro-orm-config.ts
with your MySQL credentials (they already match the ones from the docker command above). - Start the backend:
cd backend && npm start
. - Start the frontend:
cd frontend && npm start
. - After the backend successfully starts, in a new terminal
cd backend && npm run seed
to seed the database with some initial data. - You can now access the UI at http://localhost:4200 and login with
jcosten0@purevolume.com
/password
.