Skip to content

Commit

Permalink
Upgraded to latest Platformatic (#37)
Browse files Browse the repository at this point in the history
* Upgraded to latest Platformatic

Signed-off-by: marcopiraccini <[email protected]>

* removed useless comment

Signed-off-by: marcopiraccini <[email protected]>

---------

Signed-off-by: marcopiraccini <[email protected]>
  • Loading branch information
marcopiraccini authored Jun 6, 2023
1 parent 71262ec commit 5ca332b
Show file tree
Hide file tree
Showing 10 changed files with 3,279 additions and 2,444 deletions.
2 changes: 1 addition & 1 deletion apps/movie-quotes-api/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORT=3042
PLT_SERVER_HOSTNAME=127.0.0.1
PLT_SERVER_LOGGER_LEVEL=info
PLT_SERVER_CORS_ORIGIN=http://localhost:3000
PLT_SERVER_CORS_ORIGIN=http://127.0.0.1:3000
DATABASE_URL=sqlite://./movie-quotes.sqlite
16 changes: 8 additions & 8 deletions apps/movie-quotes-api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/movie-quotes-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"author": "Simon Plenderleith <[email protected]> (https://simonplend.com/)",
"dependencies": {
"fluent-json-schema": "^4.0.0",
"platformatic": "^0.26.0"
"fluent-json-schema": "^4.1.0",
"platformatic": "^0.26.1"
}
}
17 changes: 12 additions & 5 deletions apps/movie-quotes-api/platformatic.db.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@
"origin": "{PLT_SERVER_CORS_ORIGIN}"
}
},
"core": {
"connectionString": "{DATABASE_URL}"
"db": {
"connectionString": "{DATABASE_URL}",
"graphiql": true,
"openapi": true,
"ignore": {
"versions": true
}
},
"migrations": {
"dir": "./migrations",
"autoApply": true
"table": "versions"
},
"plugin": {
"path": "./plugin.js"
"plugins": {
"paths": [
"plugin.js"
]
}
}
Loading

0 comments on commit 5ca332b

Please sign in to comment.