Skip to content

tomascarvalho/ClaraMorgado

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClaraMorgado

I've created this website for my mother to display her paintings. It features an admin platform so she can add, edit and delete the paintings as she pleases.

Installation

This application requires Python3 to run. It also requires you to have a PostgreSQL database and an Amazon Aws account. You should also have Pip and VirtualEnv installed.

After installing Pip and VirtualEnv you should clone this project:

$ git clone https://github.com/tomascarvalho/ClaraMorgado.git

You should then create a virtual environment and activate it, inside the project folder:

$ virtualenv venv
$ source venv/bin/activate

After this, you should use Pip to install all the needed dependencies:

$ pip install -r requirements.txt

You can use deactivateto leave the virtual environment.

Configuration

There are two configuration files provided, inside the configfolder:

  • config.pyis the main configuration file, expecting you to have some environment variables setted up. This is the file you're expected to use in production.
  • config_development.pyis the file we're using for development, as it doesn't require us to set environmental variables. We just need to set the needed values accordingly and replace the config.config imports with config.config_development imports. If for some reason you are forking this repo, remember not to push this file with secret keys in plain text.

Run

To start the application just run the following command:

$ python application.py

The application should now be running at localhost:5000and the admin platform at localhost:5000/admin.

About

My mother's painting porfolio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published