Skip to content

Commit

Permalink
Docker support instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoMachorro authored May 8, 2020
1 parent 8b040f9 commit e0c0029
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ A simple framework for MVC web applications and RESTful APIs.

## Features

* Docker container ready
* Express based HTTP handling and routes
* Familiar MVC folder structure and URL paths (controller per file, public folder for static content, etc)
* Optional shared session management using Redis (falls-back to memorystore)
Expand Down Expand Up @@ -89,6 +90,21 @@ res.render('index', {

4. Run using **npm start** or **node app.js** - added the env var _DEBUG="mvc-webapp:*"_ to see what the framekwork is doing behind the scenes.

## Docker Support

Add the following file to the root folder and _docker build_:

```Dockerfile
FROM node:latest

WORKDIR /app
ADD . /app

RUN npm install

CMD ["npm","start"]
```

## Also Checkout

1. [EJS Templates](https://ejs.co) - this is what the views use
Expand Down

0 comments on commit e0c0029

Please sign in to comment.