Skip to content

Commit 08de4cc

Browse files
committed
API created & configured with MySQL database
0 parents  commit 08de4cc

36 files changed

+7015
-0
lines changed

.adonisrc.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"typescript": true,
3+
"commands": [
4+
"./commands",
5+
"@adonisjs/core/build/commands/index.js",
6+
"@adonisjs/repl/build/commands",
7+
"@adonisjs/lucid/build/commands"
8+
],
9+
"exceptionHandlerNamespace": "App/Exceptions/Handler",
10+
"aliases": {
11+
"App": "app",
12+
"Config": "config",
13+
"Database": "database",
14+
"Contracts": "contracts"
15+
},
16+
"preloads": [
17+
"./start/routes",
18+
"./start/kernel"
19+
],
20+
"providers": [
21+
"./providers/AppProvider",
22+
"@adonisjs/core",
23+
"@adonisjs/lucid"
24+
],
25+
"aceProviders": [
26+
"@adonisjs/repl"
27+
],
28+
"tests": {
29+
"suites": [
30+
{
31+
"name": "functional",
32+
"files": [
33+
"tests/functional/**/*.spec(.ts|.js)"
34+
],
35+
"timeout": 60000
36+
}
37+
]
38+
},
39+
"testProviders": [
40+
"@japa/preset-adonis/TestsProvider"
41+
]
42+
}

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
[*]
3+
indent_style = space
4+
indent_size = 2
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.json]
11+
insert_final_newline = ignore
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.env.example

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
PORT=3333
2+
HOST=0.0.0.0
3+
NODE_ENV=development
4+
APP_KEY=UQahnE917GRwKB-WvX6n5FCzttUT-G3j
5+
DRIVE_DISK=local
6+
DB_CONNECTION=mysql
7+
8+
MYSQL_HOST=localhost
9+
MYSQL_PORT=3306
10+
MYSQL_USER=lucid
11+
MYSQL_PASSWORD=
12+
MYSQL_DB_NAME=lucid

.env.test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NODE_ENV=test

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
build
3+
coverage
4+
.vscode
5+
.DS_STORE
6+
.env
7+
tmp

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "none"
5+
}

ace

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
|--------------------------------------------------------------------------
3+
| Ace Commands
4+
|--------------------------------------------------------------------------
5+
|
6+
| This file is the entry point for running ace commands.
7+
|
8+
*/
9+
10+
require('reflect-metadata')
11+
require('source-map-support').install({ handleUncaughtExceptions: false })
12+
13+
const { Ignitor } = require('@adonisjs/core/build/standalone')
14+
new Ignitor(__dirname)
15+
.ace()
16+
.handle(process.argv.slice(2))

0 commit comments

Comments
 (0)