File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,13 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
47
47
| Language | Command for code generation | Example of generated files | Libraries |
48
48
| -----------| ----------------------------| ---------------------------| --------- |
49
49
| JavaScript | ` npx query2app --lang js ` | [ ` app.js ` ] ( examples/js/app.js ) <br />[ ` routes.js ` ] ( examples/js/routes.js ) <br />[ ` package.json ` ] ( examples/js/package.json ) | Web: [ ` express ` ] ( https://www.npmjs.com/package/express ) , [ ` body-parser ` ] ( https://www.npmjs.com/package/body-parser ) <br >Database: [ ` mysql ` ] ( https://www.npmjs.com/package/mysql ) |
50
+ | Golang | ` npx query2app --lang go ` | [ ` app.go ` ] ( examples/go/app.go ) <br />[ ` routes.go ` ] ( examples/go/routes.go ) <br />[ ` go.mod ` ] ( examples/go/go.mod ) | Web: [ ` go-chi/chi ` ] ( https://github.com/go-chi/chi ) <br />Database: [ ` go-sql-driver/mysql ` ] ( https://github.com/go-sql-driver/mysql ) , [ ` jmoiron/sqlx ` ] ( https://github.com/jmoiron/sqlx ) |
50
51
51
52
1 . Run the application
52
53
| Language | Commands to run the application |
53
54
| -----------| --------------------------------|
54
55
| JavaScript | <pre >$ npm install<br />$ export DB_NAME=my-db DB_USER=my-user DB_PASSWORD=my-password<br />$ npm start</pre > |
56
+ | Golang | <pre >$ go run * .go</pre >or<pre >$ go build -o app<br />$ ./app</pre > |
55
57
56
58
---
57
59
:bulb : ** NOTE**
You can’t perform that action at this time.
0 commit comments