Cleaned up tools and tests

This commit is contained in:
2021-12-23 13:33:58 +00:00
parent 0aa1e67be9
commit 8b91ff8dd3
6 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ const question = (prompt, def = null) => {
const appPort = await question('App Port', '3200'); const appPort = await question('App Port', '3200');
const appDBUser = await question('DB User', appName); const appDBUser = await question('DB User', appName);
const appDBPass = await question('DB Pass', uuid()); const appDBPass = await question('DB Pass', 'charizard');
const dbRootPass = await question('DB Root Pass'); const dbRootPass = await question('DB Root Pass');
const appMailSMTP = await question('Mail SMTP', 'smtp.example.com'); const appMailSMTP = await question('Mail SMTP', 'smtp.example.com');
+10 -10
View File
@@ -1,34 +1,34 @@
#Signup #Signup
POST https://dev-auth.eggtrainer.com/auth/signup HTTP/1.1 POST https://dev-auth.krgamestudios.com/auth/signup HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
"email": "kayneruse@gmail.com", "email": "example@example.com",
"username": "Ratstail91", "username": "Example",
"password": "helloworld" "password": "helloworld"
} }
### ###
#Login #Login
POST https://dev-auth.eggtrainer.com/auth/login HTTP/1.1 POST https://dev-auth.krgamestudios.com/auth/login HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
"email": "kayneruse@gmail.com", "email": "example@example.com",
"password": "helloworld" "password": "helloworld"
} }
### ###
#Query data #Query data
GET https://dev-auth.eggtrainer.com/auth/account HTTP/1.1 GET https://dev-auth.krgamestudios.com/auth/account HTTP/1.1
Authorization: Bearer Authorization: Bearer
### ###
#Logout #Logout
DELETE https://dev-auth.eggtrainer.com/auth/logout HTTP/1.1 DELETE https://dev-auth.krgamestudios.com/auth/logout HTTP/1.1
Authorization: Bearer Authorization: Bearer
{ {
@@ -38,7 +38,7 @@ Authorization: Bearer
### ###
#Refresh #Refresh
POST https://dev-auth.eggtrainer.com/auth/token HTTP/1.1 POST https://dev-auth.krgamestudios.com/auth/token HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
@@ -48,7 +48,7 @@ Content-Type: application/json
### ###
#Update account data #Update account data
PATCH https://dev-auth.eggtrainer.com/auth/update HTTP/1.1 PATCH https://dev-auth.krgamestudios.com/auth/update HTTP/1.1
Content-Type: application/json Content-Type: application/json
Authorization: Bearer Authorization: Bearer
@@ -59,7 +59,7 @@ Authorization: Bearer
### ###
#Delete account #Delete account
DELETE https://dev-auth.eggtrainer.com/auth/deletion HTTP/1.1 DELETE https://dev-auth.krgamestudios.com/auth/deletion HTTP/1.1
Authorization: Bearer Authorization: Bearer
Content-Type: application/json Content-Type: application/json
@@ -3,8 +3,8 @@ POST http://127.0.0.1:3200/auth/signup HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
"email": "kayneruse@gmail.com", "email": "example@example.com",
"username": "Ratstail91", "username": "Example",
"password": "helloworld" "password": "helloworld"
} }
@@ -15,8 +15,8 @@ POST http://127.0.0.1:3200/auth/login HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
"email": "admin@example.com", "email": "example@example.com",
"password": "password" "password": "helloworld"
} }
### ###
@@ -1,4 +1,4 @@
#use this while debugging #use this while debugging
CREATE DATABASE IF NOT EXISTS auth; CREATE DATABASE IF NOT EXISTS auth;
CREATE USER IF NOT EXISTS 'auth'@'%' IDENTIFIED BY 'venusaur'; CREATE USER IF NOT EXISTS 'auth'@'%' IDENTIFIED BY 'charizard';
GRANT ALL PRIVILEGES ON auth.* TO 'auth'@'%'; GRANT ALL PRIVILEGES ON auth.* TO 'auth'@'%';