This is the backend used in lessons Webservices.
- NodeJS v20.6 or higher
- Yarn
- MySQL v8 (no Oracle account needed, click the tiny link below the grey box)
- MySQL Workbench (no Oracle account needed, click the tiny link below the grey box)
For users of Chocolatey:
choco install nodejs -y
choco install yarn -y
choco install mysql -y
choco install mysql.workbench -y
Create a .env
(development) file with the following template.
NODE_ENV=development
DATABASE_USERNAME=root
DATABASE_PASSWORD=root
- Install all dependencies:
yarn
- Make sure a
.env
exists (see above) - Start the development server:
yarn start
- Install all dependencies:
yarn
- Make sure a
.env.test
exists withNODE_ENV=test
(see above) - Start the development server:
yarn test