cms

module
v0.0.0-...-6e77faf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: MIT

README

CMS

Tests codecov Go Report MIT License

A content management (system) microservice that exposes a REST API and persists content in MongoDB.

Running the service locally

You will need to store a MongoDB connection string as an environment variable named YAN_CMS_DB_URI. This microservice doesn't load from .env due to relative pathing issues, so you will need to store it in your shell session.

export YAN_CMS_DB_URI="my-connection-string"

Should you need it to persist across shell session, be sure to store it in ~/.bashrc

You can now run the server (make sure you have go version 1.22.4),

make run

you can run the service in a container. First, build the docker image,

make image

To start the container, run make up. To stop it, run make down

License

This CMS microservice is MIT licensed.

Directories

Path Synopsis
cmd
api command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL