My personal art gallery, where I showcase some of my favorite pictures.
To install this project in your machine, Install the following packages:
- Python3
- Virtualenv
- PostgreSQL
- VsCode
- Python3
- Django 4.0
- Bootsrap 4
- Javascript
- HTML
- CSS
- Virtualenv
- PostgreSQL
- Heroku
- VsCode
- Fancybox CSS
Create a virtual environment and install the required packages.
# Create a virtual environment
python3 - m venv venv
# activate env
source venv/bin/activate
# install packages
pip install - r requirements.txt
Inside the project directory, create a dotenv file.
touch .env
Add the follwing credentials to the .env file:
DB_USER = <username >
DB_PASSWORD = <password >
DB_HOST = <host >
DB_PORT = <port >
DB_NAME = <dbname >
SECRET_KEY = <secret_key >
MODE = 'dev'
CLOUDINARY_CLOUD_NAME = <cloud_name >
CLOUDINARY_API_KEY = <api_key >
CLOUDINARY_API_SECRET = <api_secret >
To run the application, run the following command:
python3 manage.py runserver
First, create a database of your choice and save the credentials in .env
.:
to Get the database up and running run:
```bash
python3 manage.py migrate
This application is created followint the TDD model for database models and their methods respectibvely. To run the tests use:
python3 manage.py test
To deploy the application to Heroku follow this guide: [Heroku deploy](https: // gist.github.com/bernie-haxx/01e28cfbd911f87c7df8ee33cbdaa593)
Aslo click here to see a version of this project deployed to Heroku: [Picasso Gallery](https: // windowswap.herokuapp.com/picasso/)
Feel free to fork and tweak as you like:) or you can also open an issue or PR[here](https: // github.com/Willbeckh/galleria/pulls)
At the moment of completion and deploy, no bugs have been found yet, but if you find any you know what it is, it's a feature : )
Created with ❤️ by Willbeckh.
Image credits: unsplash
This project is licensed under theMIT license.