Skip to content

Developer setup

Nathanaël edited this page Oct 23, 2020 · 40 revisions

Requirements

  • NodeJS (at least v14)
  • MySQL or MariaDB

Scripts needed

  • .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

Create the database

[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';

Run development server

You can use nodemon to auto-reload the servers on changes. You can launch two instances, one for client/ and the other for server/

Clone this wiki locally