Skip to content

This a flask restful Api with authentications and enables users to write and share blogs

Notifications You must be signed in to change notification settings

hadijahkyampeire/blog-API

Repository files navigation

Build Status Coverage Status

blogsApi

This is a simple API blog

Workflow

Build the image

$ docker-compose build

Once the build is done, fire up the container in detached mode

$ docker-compose up -d

Updating the container:

$ docker-compose up -d --build

Run migrations and create database

$ docker-compose exec api-server python manage.py db init
$ docker-compose exec api-server python manage.py db migrate
$ docker-compose exec api-server python manage.py db upgrade

With existing migrations, run migrate and upgrade

$ docker-compose exec api-server python manage.py db migrate
$ docker-compose exec api-server python manage.py db upgrade

Hop into the postgresql(psql) shell

docker-compose exec api-db psql -U postgres

Other Commands

To stop the containers:

$ docker-compose stop

To bring down the containers:

$ docker-compose down

Want to force a build?

$ docker-compose build --no-cache

Remove images:

$ docker rmi $(docker images -q)

About

This a flask restful Api with authentications and enables users to write and share blogs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published