https://github.com/figadore/sample-mini-blog
fork of shinymayhem/express-skeleton-app, mini blog full stack example
https://github.com/figadore/sample-mini-blog
Last synced: over 1 year ago
JSON representation
fork of shinymayhem/express-skeleton-app, mini blog full stack example
- Host: GitHub
- URL: https://github.com/figadore/sample-mini-blog
- Owner: figadore
- Created: 2016-08-12T21:58:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-24T23:12:29.000Z (almost 7 years ago)
- Last Synced: 2025-04-10T05:12:27.715Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog
Quick blog project
To use:
* Copy secrets.list.dist to secrets.list, and modify env variables appropriately
* Do the same for mysql.list.dist
* Deploy as instructed below
## Deploying
### Docker
#### Using docker-compose
Build and run the app on port 80
* `docker-compose up`
#### Using plain docker
* `docker build -t app ./`
* `docker run -d -p 80:80 app`
## Developing
### Docker
#### Using docker-compose
Build and run the app on port 3099
* `docker-compose -f dev-compose.yml up`
Note: first time running with dev-compose.yml will require npm install from another shell attached to this container, e.g. `docker exec -it app_app_1 bash` `npm install`
#### Using plain docker
* `docker build -t app ./`
* `docker run --it -rm -v $(pwd):/var/www -p 3000:80 app` #runs on host port 3000
### Custom local Node.js installation
Run `npm start` in the root of the repository