Skip to content

frostrot/nursery_management_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nursery_management

Please Use UBUNTU/MAC and not windows if you want your life to be any good.

Note: All commands are to be executed from base folder unless stated otherwise. This is just production code and not all good practices are used.

NOte: Fork this repo, and make a separate branch!!! don't commit on master please!!!! ask me if you have any doubts!

create a virtual environment in the base folder

python3 -m venv venv

activate the virtial environment

source venv/bin/activate

Install the requirements

pip3 install -r requirements.txt

Link to database, create a new database on your mysql from the root user

Log on to mysql as root user,

mysql -u root -p
write you password, then create database:
create database nursery_management;

Grant priveleges to user(idk if you made the user or not but figure it out userself you have dbms afterall)

my username is noisymime so for me:

GRANT ALL PRIVILEGES ON nursery_management.* TO 'noisymime'@'localhost';

Congo on making it till here, now let's set up flask, create a file secret.py in the base directory

touch secret.py

Now inside the file, add the username and password of your mysql user, we do this so we don't have to share the password on github.

e.g: the 2 lines could be
name = 'YOUR USER NAME'
password = 'YOUR PASSWORD'

Now let's run the APP, WOHOO!!

python3 run.py

Now open any browser and go to 0.0.0.0:8080/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages