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.
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 deactivate
to leave the virtual environment.
There are two configuration files provided, inside the config
folder:
config.py
is 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.py
is 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 theconfig.config
imports withconfig.config_development
imports. If for some reason you are forking this repo, remember not to push this file with secret keys in plain text.
To start the application just run the following command:
$ python application.py
The application should now be running at localhost:5000
and the admin platform at localhost:5000/admin
.