A simple web apps consist of only authentication form.
UNIX like operating system (WSL (TESTED), Linux (TESTED) , macOS)
mysql
Node Package Manager (NPM)
- Clone this repo
git clone git@github.com:ganadipa/Authentication-form-graphql.git
- Copy the .env
cp .env.example .env
- Fill in the blanks in the .env file
DB_NAME = <name>
DB_PASSWORD = <password>
- 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
- Ready for development
npm install
npm run dev