Application built with Lapis, Brunch and Bootstrap running with Docker.
- Lapis is a framework for building web applications using MoonScript or Lua that runs inside of a customized version of Nginx called OpenResty.
- Brunch for building frontend code. Support for Javascript modules and CSS. In production mode all assets are minified.
- Bootstrap v3.3.7.
- Docker support using docker-compose for development and production.
- Install (if you don't have them):
- Install dependencies
- Brunch plugins and app dependencies:
npm install
- Brunch plugins and app dependencies:
- Run in development mode:
npm start
— watches the project with continuous rebuild.- Run the application with
docker-compose -f docker-compose-dev.yml up
- Now, you make changes to your code and just reload the page
- Run in production mode:
npm run build
— builds minified project for production- Run the application with
docker-compose up
- Learn:
- Write your server code in
server/
dir. - Write your frontend code in
app/
dir. - Place static files you want to be copied from
app/assets/
toserver/static
. - Brunch site, Getting started guide
- Lapis reference
- Write your server code in