/twilight-storm

Primary LanguageJavaScriptMIT LicenseMIT

Boilerplate

Development Installation - linux

  1. 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
  1. clone the repo
git clone https://github.com/jackson-elfers/boilerplate.git
cd boilerplate
npm install && cd client && npm install && cd ..
  1. 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=
  1. set development env for project with npm run script
npm run dev.env
  1. obtain recaptcha credentials from www.google.com

  2. start the development server

npm run dev