Authentication Form Graphql

A simple web apps consist of only authentication form.

Requirements

UNIX like operating system (WSL (TESTED), Linux (TESTED) , macOS)
mysql
Node Package Manager (NPM)

Setup

  1. Clone this repo
git clone git@github.com:ganadipa/Authentication-form-graphql.git
  1. Copy the .env
cp .env.example .env
  1. Fill in the blanks in the .env file
DB_NAME = <name>
DB_PASSWORD = <password>
  1. Setup the database. With <name> and <password> that is used in the .env file
sudo mysql -u root -p
CREATE DATABASE gqlauth;
EXIT;

sudo mysql -u root -p gqlauth < src/db/seed.sql

sudo mysql -u root -p
CREATE USER '<name>'@'localhost' IDENTIFIED BY '<password>';
GRANT ALL PRIVILEGES ON gqlauth.* TO '<name>'@'localhost';
FLUSH PRIVILEGES;
EXIT;

sudo systemctl start mysql
  1. Ready for development
npm install
npm run dev