SiestaCMS

A lightweight, simple, database free, serverless CMS for lazy people. Written in 70 180 lines of JavaScript, 40 70 lines of HTML, and 100 80 lines of CSS

GitHub

How to install it

11/14/2020

Dependencies

You'll need:

  • Docker
  • Docker Compose
  • AWS credentials in ~/.aws or environment variables

Local setup

To install SiestaCMS in your computer:

  1. Clone the repo with git clone https://github.com/nosolopau/siestacms.
  2. Change to siestacms directory with cd siestacms.
  3. Create an .env file manually or by running make envfile ENVFILE=env.example.
  4. Install the dependencies: make deps.
  5. Run it locally with: make server. A local server will be launched in your port 3000.
  6. Browse localhost:3000.

Customize it

Edit serverless.yml. At least, change the service name under service to use your own.

Custom domains

If you want to use a custom domain, configure it in serverless.yml under the `custom` section. If you don't want to use it, just comment or remove the configuration for both custom.domain and custom.customDomain.

This configuration is a bit tricky so be ready to SUFFER. I didn't include Make commands for this purpose as I assume only a few people will need it.

To use your own domain, configure it under the sections custom.domain and custom.customDomain in the serverless.yml file, and run:

        make shell

This will open a shell inside a Docker container

In the shell, run:

        sls create_domain --stage=<STAGE>
        sls deploy --stage=<STAGE>

Deploy

If you want to deploy your own distribution, you'll need an AWS account configured in your environment file or in your ~/.aws folder. Then, just run:

        make deploy

The Serverless install will run and you'll get the URL for your lambda function

See more instructions on how to use SiestaCMS under the section How to use it.