Skip to content

Commit

Permalink
update docker scripts, update readme, add missing base config propert…
Browse files Browse the repository at this point in the history
…y, version bump
  • Loading branch information
realtux committed Aug 16, 2024
1 parent 6035c6b commit aeaa70d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/core/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let config = {
/**
* internal config
*/
version: '0.0.11',
version: '0.0.12',

paths: {
root: '',
Expand All @@ -26,6 +26,7 @@ let config = {
host: '0.0.0.0',
port: 8118,
base_url: `http://127.0.0.1:8118`,
websocket: true,
},

database: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@exajs/core",
"type": "module",
"author": "Brian Seymour <@realtux>",
"version": "0.0.11",
"version": "0.0.12",
"description": "modern opinionated node.js framework",
"license": "MIT",
"homepage": "https://github.com/realtux/exa",
Expand Down
12 changes: 12 additions & 0 deletions var/template/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
cd $(dirname "$0")

case $* in
dev* )
docker compose up
;;
start* )
docker compose up -d
;;
stop* )
docker compose down
;;
shell* )
docker compose exec app bash
;;
console* )
docker compose run --rm console node app.js console ${@:2}
;;
Expand Down
13 changes: 13 additions & 0 deletions var/template/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## exa.js project
exa.js is a minimal node.js backend framework that has a strong focus on simplicity, modularity, and convention over configuration.

---

### quickstart
```bash
# start dev with auto reload
npm run watch

# start production
npm start
```

0 comments on commit aeaa70d

Please sign in to comment.