This repository has been archived on 2025-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2021-08-24 10:02:54 +09:30
.devcontainer got container working, now to test deploy 2021-06-03 19:53:22 +09:30
assets fixed dir issues 2021-06-13 17:03:53 +09:30
posts started icomoon blog 2021-08-24 10:02:54 +09:30
.dockerignore added auto-generated stuff from vs code, not sure if it works yet but it looks good. 2021-06-03 08:59:19 +09:30
.gitignore Update .gitignore 2021-06-03 08:58:13 +00:00
.gitlab-ci.yml merging remote 2021-06-13 18:59:35 +09:30
app.py updated error on not found to 404, accidentally had it as 400 2021-06-06 13:09:31 +09:30
codehilite_styles.css Initial commit 2021-06-02 18:17:11 +09:30
dev.py forgot to add oops 2021-06-03 22:55:43 +09:30
Dockerfile updated some things, docker file now builds 2021-06-03 23:23:24 +09:30
gunicorn.config.py got container working, now to test deploy 2021-06-03 19:53:22 +09:30
LICENSE got container working, now to test deploy 2021-06-03 19:53:22 +09:30
prod.py forgot to add oops 2021-06-03 22:55:43 +09:30
README.md updated code to include cors 2021-06-06 12:23:50 +09:30
requirements.txt updated code to include cors 2021-06-06 12:23:50 +09:30

Simple Blog API

This is a very busted work in progress api for my website.

I do not intend to frequently add to the blog and I needed a basic way of delivering content. My intention is to have a container that contains the posts as markdown files. These files can be added via git and the CI/CD will redeploy the container (I haven't got to that yet currently just trying to get it working at all), or as will most likely happen for now I can manually deploy it.

I wanted to have a go at using a dev container so that I don't need to worry about having the dependencies on my system (except for docker of course).

Usage

When the project is opened in vscode it will prompt to reopen in container, do so.

Once this is done, for the first time or on a rebuild, one can simply run:

pip install -r requirements.txt

To run the development server run, you MUST have run pip install first:

gunicorn -c gunicorn.config.py dev:api

Caveats

Currently there is no git in the container so you can't see what's been edited or not, git will have to be managed from the host.

That about covers everything.