-
Notifications
You must be signed in to change notification settings - Fork 1
Developer setup
Nathanaël edited this page Oct 23, 2020
·
40 revisions
- NodeJS (at least v14)
- MySQL or MariaDB
.git/hooks/pre-commit
#!/bin/sh
cd "$(git rev-parse --show-toplevel)/server" || exit 1
npm run format || exit 1
npm run lint || exit 1
cd "$(git rev-parse --show-toplevel)/client" || exit 1
npm run format || exit 1
npm run lint || exit 1
git add -A
exit 0
[mysql]: CREATE USER 'glowing-octo-guacamole'@'localhost' IDENTIFIED BY 'p@ssword';
[mysql]: CREATE DATABASE glowingOctoGuacamoleDev;
[mysql]: GRANT ALL PRIVILEGES ON glowingOctoGuacamoleDev.* TO 'glowing-octo-guacamole'@'localhost';
You can use nodemon
to auto-reload the servers on changes. You can launch two instances, one for client/
and the other for server/
Apothiquiz, by Éros Albérola, Nathanaël Houn, Valentin Perignon & François Poguet