Skip to content

myportfolio-tech/wcBlog

Repository files navigation

weBlog - Student Project

Local Deployment

Use the Main branch to set up and test the app locally. The web service is a flask app. The db service is a postgresql databse. In this version, both services run on the same host.


Setting up the Project from the github repo

Before you start:

Ensure docker & docker-compose is intalled in the server Docker on Ubuntu installation

 

  1. Clone the repo into the weblog direcotory
git clone git@github.com:myportfolio-tech/wcBlog.git weblog
  1. Navigate the project folder
cd weblog
  1. The docker-compose file pulls images from a public repo. You don't need to build the image with docker-compose

4. Bownload the images and bring up the containers with ```console docker-compose up ``` For testing, avoid the -d parameter to troubleshoot flask requests on the command line.

Test the app locally

Check the app is running locally.   You should be able to:

  1. Register
  2. Sign in
  3. Create a post
  4. Edit a post
  5. Reset password

Volumes

The docker-compose file sets up a persistant volume.

    volumes:
      - postgres_data:/var/lib/postgresql/data/ 

Stop the conatiners and restart them. Test that users and posts are still available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published