An open API service indexing awesome lists of open source software.

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

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