This is personal project and for personal usage.
- Heroku (planned)
- Django
- HTML
- JavaScript
- CSS
- JQuery
- PostgreSQL
- Registration
- Login/Logout
- Create/Edit/Delete games.
- Create/Edit/Delete sign-ups to games.
- List played formats.
- Banned cards list.
- Club rules.
- Discussion about bans/unbans.
- Votes (bans/unbans/formats/etc) UNDER WORK.
- Trade lists
- Comparing trade lists
- Keeping track of club purchases and booster usage
- Customizable randomizer (Random commanders, cards, etc.)
- Pull the repository to your local environment.
- Install at least Python 3.5.3 or newer.
- Install pip for said Python version.
- Install requirements for PostgreSQL
- Create PostgreSQL database.
- Create virtual environment that uses python 3.
- Activate the virtual environment.
- Install requirements found in requirements.txt
- Create migrations for the application.
- Run migrations for the application.
- Start the server.
- Request application secret key from me.
- Add the application secret key to the settings.py found inside website-folder.
# These guides are for Ubuntu, other machines you will find guides on the Internet.
# 1. Pulling repository
git clone git@github.com:pesusieni999/mtgwebsite.git
# 2. Installing Python
Should be preinstalled in Ubuntu OS. For other OS see Python website.
# 3. Installing pip for Python3
Should be preinstalled in Ubuntu OS. For other OS see documentation on the Web.
# 4. Installing requirements for PostgreSQL
sudo apt-get install python-dev libpq-dev postgresql postgresql-contrib
# 5. Creating PostgreSQL
sudo su - postgres
psql
CREATE DATABASE myproject;
CREATE USER myprojectuser WITH PASSWORD 'password';
ALTER ROLE myprojectuser SET client_encoding TO 'utf8';
ALTER ROLE myprojectuser SET default_transaction_isolation TO 'read committed';
ALTER ROLE myprojectuser SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;
\q
exit
# 6. Creating virtual environment.
virtualenv -p /usr/bin/python3 venv
# 7. Activating the virtual environment
source venv/bin/activate
# 8. Installing requirements
pip install -r requirements.txt
# 9. Creating migrations
./manage.py makemigrations mtgapp
# 10. Running migrations
./manage.py migrate
# 11. Starting server
./manage.py runserver