Self-hosted platform to build, test and deploy static web sites.
Each platform instance provides an interface to build, test and deploy a website.
A development version of the website being build will be available in each instance under a subdomain. Once the website is ready for production, the user needs to connect his gitlab account to push the changes to a repository. The production vesion of the website will be deployed using gitlab pages, a different free hosting service, or a custom ftp set by the user.
- Caddy Reverse Proxy
- Cloudflare DNS
- Gitlab pages
- NodeJS
- MongoDB
- Docker
- Nodemon
- Love
- 09-2019: Sketches
- 10-2019: Initial release
- 01-2020: Crowfounding campaign
This guidelines should allow you to use this tool without the GUI (If the GUI is is still WIP or is bugged)
yarn add -g montpesites
ms init
- Stored under src/pages
- The name of the folder is the default public pathname
- Example: awesome-article
- Each folder has two files: a content file and a config file
- Content file default extension is html
- Example of content file: index.html
- Example of config file: index.js
module.exports = async app => {
return {
//indicates a layout
//src/layouts/app.html
layout: 'app',
//changes the public path
target: '/'
}
}
Is also possible to write a content file in markdown, just change the extension of the file inside the page folder.
src/awesome-article/index.md
- Stored under src/layouts
- Named with underscore first
- Example: _header.html
-
BUILT-IN Engine: Partials are part of the built-in template engine. Layouts and partials are used as follow.
<!-- layout file --> <body> <header> %_header% </header> %page_content% <footer> %_footer% </footer> <body>
Note: %page_content% is the only special block and it renders the page content file.
-
PUG: Add 'USE_PUG' at the beginnig of the content file of the page
<!-- USE_PUG -->
-
HANDLEBARS: Same as PUG
<!-- USE_HANDLEBARS -->
The GUI web app is an static client side app rendered using the project itself.
Structure
- src/pages
- src/layouts
- src/js
- ms.config.js
Structure
- src/index.js
- src/server
For development
yarn dev
For production
yarn start
Please feel free to add issues
We are eager to find contributors for this project. If you want to help please email us.
This tools is being developed for free by misitioba.com. Any contribution is more than welcome.