Skip to content

WillNigel23/clubfomo-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLUB FOMO WEBSITE

Setting Up Virtual Environment

Turn off Execution Policy Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process

Create a Virtual Environment py -m venv env

Activate the Virtual Environment
env\Scripts\Activate.ps1

Deactivate the Virtual Envirtonment
deactivate

Install Django

pip install django

Go inside the PROJECT

cd clubfomo

Dependencies

Dependencies are installed using pip

To add dependencies on requirements.txt

pip freeze > requirements.txt

To install dependencies using requirements.txt

pip install -r requirements.txt

Database MYSQL

The database will be on MySQL

To install MySQL

pip install mysqlclient pip install mysql-connector-python

To start MySQL

mysql -u root -p

To create a Database

DROP DATABASE IF EXISTS clubfomo_db; CREATE DATABASE clubfomo_db; CREATE USER 'clubfomo_user'@'localhost' IDENTIFIED BY '$password'; GRANT ALL PRIVILEGES ON clubfomo_db . * TO 'clubfomo_user'@'localhost';

To create degenz table on DB

USE clubfomo_db; CREATE TABLE IF NOT EXISTS degenz ( id int(11) NOT NULL AUTO_INCREMENT, title char(200) NOT NULL, caption char(200) NULL, img varchar(200) NOT NULL, is_featured boolean NOT NULL, PRIMARY KEY(id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

To create events table on DB

USE clubfomo_db; CREATE TABLE IF NOT EXISTS events ( id int(11) NOT NULL AUTO_INCREMENT, title char(200) NOT NULL, date DATE NOT NULL, img varchar(200) NOT NULL, caption varchar(1000) NOT NULL, is_featured boolean NOT NULL, PRIMARY KEY(id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

To Delpoy the Database

mysql -h localhost -D clubfomo_db -u clubfomo_user --password=$password;

Making Migrations

py manage.py makemigrations
py manage.py migrate

To deploy the PROJECT locally

py manage.py runserver

About

Clubfomo website made in Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published