-
- For Windows: Install Xampp and your are ready to go.
-
1.Install latest python from https://www.python.org/
2.After installation, make sure
pipis installed. You can executepip --versionon terminal to verify this.If not installed, download this file get-pip.py. then you can execute
python get-pip.pyto install pip. -
1.Go to the folder where the project is situated. 2. Openup a terminal there, for Windows:
Shift + Right-Click and click on powershell window3. Typepipenv shellto create a pipenv shellThis creates a isolated environment for your python projects so that the project specific modules would not collide with system-wide installed python modules 4. Make sure you are in the right directory (i.e. be in the directory where project files are)
-
- Following the Step 4, now type:
pipenv install -r requirements.txtto install all necessary modules at once.
- Following the Step 4, now type:
-
- Now, open xampp and start mysql and apache service.
- Then open
config.pyfile from project and edit the line
`SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:@localhost:3306/forms'
3.Replace
root:with your database credentials in the formatusername:password4.Replace
localhost:3306with your database connection url. It is most likely to be the same.5.The resultant line should be :
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://username:password@url_for_db:port_value/forms'6.Save the file
-
-
Now we will create database tables and populate the tables with necessary data
-
The credentials of admin will be as follows:
Admin credentials:
email:
admin@email.compassword:
adminNote : Donot worry, we donot save plain password. We use bcrypt to generate encrypted passwords.
3.Execute, on the powershell(command line):
This will create tables and populate tables
python database_setup.py -
-
- Now, on the command line, execute:
set FLASK_APP=app.py- Then, execute:
flask run3.Now, the web app should run at http://localhost:5000 and you will see a similar screen

-
Notifications
You must be signed in to change notification settings - Fork 0
sudippokhrel/Project-I
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
