Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDD97-Webprog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Green
TDDD97-Webprog
Commits
84618c1f
Commit
84618c1f
authored
2 years ago
by
Gustav Elmqvist
Browse files
Options
Downloads
Patches
Plain Diff
lab3, lab4 hand-in
parent
17531792
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+34
-2
34 additions, 2 deletions
README.md
with
34 additions
and
2 deletions
README.md
+
34
−
2
View file @
84618c1f
# Web Programming laborations
# TDDD97
This repo contains the laborations in the course TDDD97 done by Gustav and Oliver.
\ No newline at end of file
This repo contains the laborations in the course TDDD97 done by Gustav and Oliver.
## How to run the code
0.
Clone the repository and open the TDDD97 directory in your bash terminal.
1.
Create and run a python virtual environment using
*venv*
```
bash
python3
-m
venv venv
source
venv/bin/activate
```
2.
Install the required python packages using
*pip install*
```
bash
pip
install
-r
requirements.txt
```
3.
Create the database using sqlite3 and the file
*schema.sql*
.
```
bash
sqlite3 database.db < schema.sql
```
4.
Run the server with
*gunicorn*
```
bash
gunicorn
-b
0.0.0.0:5000
--workers
1
--threads
100 server:app
```
5.
Use a web browser of your choice and go to localhost port 5000
```
localhost:5000/
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment