Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
node_modules
build
coverage
.vscode
.vscode/*
.DS_STORE
.env
tmp
tmp
!.vscode/launch.json
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"protocol": "inspector",
"restart": true,
"name": "Debug Attach",
"skipFiles": [
"<node_internals>/**"
],
"outFiles": [
"${workspaceFolder}/**/*.js",
]
}
]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ yarn install
$ yarn start
```

**You could also use VS Code Debug just running this script instead: `yarn dev:debug`**

## Content
This template use the most recent @AdonisJs packages and will be constantly updated to reflect the current Alpha Release Version.

Expand Down
2 changes: 1 addition & 1 deletion app/Controllers/Http/AddressesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class AddressesController {
const { client_id } = ctx.params
const client = await Client.query().where({id: client_id}).preload('address').first()

const address = await Address.query().where('clientId', client_id).preload('client').first()
// const address = await Address.query().where('clientId', client_id).preload('client').first()
if (!client!.address) {
throw new NotFoundException('Address not found.')
}
Expand Down
2 changes: 1 addition & 1 deletion app/Controllers/Http/ClientsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ClientValidator from 'App/Validators/ClientValidator'
import NotFoundException from 'App/Exceptions/NotFoundException'

export default class ClientsController {
public async index (ctx: HttpContextContract) {
public async index () {
const clients = await Client.all()
return clients
}
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"scripts": {
"build": "node ace build",
"start": "node ace serve --watch",
"dev:debug": "node ace serve --watch --node-args=\"--inspect\"",
"lint": "eslint . --ext=.ts",
"pretest": "DB_NAME=test node ace migration:run",
"test": "node build/japaFile.js || :",
"posttest": "DB_NAME=test node ace migration:rollback"
},
"devDependencies": {
"@adonisjs/assembler": "^2.0.3",
"@adonisjs/assembler": "^2.1.2",
"@types/jsonwebtoken": "^8.3.9",
"adonis-preset-ts": "^1.0.4",
"eslint": "^6.8.0",
Expand All @@ -25,10 +26,10 @@
"youch-terminal": "^1.0.0"
},
"dependencies": {
"@adonisjs/ace": "^6.9.2",
"@adonisjs/core": "^5.0.0-preview-rc-1.5",
"@adonisjs/ace": "^6.9.3",
"@adonisjs/core": "^5.0.0-preview-rc-1.6",
"@adonisjs/fold": "^6.3.5",
"@adonisjs/lucid": "^8.1.0",
"@adonisjs/lucid": "^8.1.1",
"@phc/argon2": "<2.0.0",
"jsonwebtoken": "^8.5.1",
"luxon": "^1.23.0",
Expand Down
747 changes: 497 additions & 250 deletions yarn-error.log

Large diffs are not rendered by default.

Loading