- install/configure mysql
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_secure_installation utility
sudo systemctl start mysql
sudo mysql -u root -p
create database dev;
ALTER DATABASE dev CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
exit
- clone the repo
git clone https://github.com/jackson-elfers/boilerplate.git
cd boilerplate
npm install && cd client && npm install && cd ..
- create dev.env file on path: boilerplate/env/dev.env
PORT=5000
MYSQL_CONNECTION_LIMIT=100
MYSQL_HOST=localhost
MYSQL_USER=admin
MYSQL_PASSWORD=12345
MYSQL_DATABASE=dev
MYSQL_SSL=false
JWT_SECRET=c6cab76a-9b12-4166-ae52-911ef05adfba
JWT_EXPIRATION=172800
RECAPTCHA_SECRET_KEY=
- set development env for project with npm run script
npm run dev.env
-
obtain recaptcha credentials from www.google.com
-
start the development server
npm run dev