Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lhdoc3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Long Huang
lhdoc3
Commits
82113b01
Commit
82113b01
authored
Jan 23, 2023
by
Long Huang
Browse files
Options
Downloads
Patches
Plain Diff
ok2
parent
eb5c6010
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+12
-43
12 additions, 43 deletions
README.md
with
12 additions
and
43 deletions
README.md
+
12
−
43
View file @
82113b01
# Flask - Labs
## basic
Username: Long Huang
student number: C22116595
url: http://lhdoc-3-git-lhdoc.apps.openshift.cs.cf.ac.uk/
This repository covers exercises in Flask labs.
## References
https://pandao.github.io/editor.md/
https://github.com/jquery/jquery
https://github.com/KaTeX/KaTeX
https://github.com/layui/layui
https://github.com/markmap/markmap
Click on the relevant tag to access a snapshot of the state of the Blog project at a particular point of the lab tasks completion.
## Contents:
| Lab | Functionality | Git Tag |
|------|---------------------------|---------|
| 1.1 | Basic "Hello World!" page |
[
part 1.1
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_1.1
)
|
| 1.2 | Basic templating, routes, navigation and styling |
[
part 1.2
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_1.2
)
|
| 1.3 | Reorganising the project for Blogging Website |
[
part 1.3
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_1.3
)
|
| 2.1 | Blogging Website: database implementation, dynamic home page|
[
part 2.1
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_2.1
)
|
| 2.2 | Blogging Website: individual post pages|
[
part 2.2
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_2.2
)
|
| 3.1 | Blogging Website: user accounts |
[
part 3.1
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_3.1
)
|
| 3.2 | Blogging Website: validation |
[
part 3.2
](
https://git.cardiff.ac.uk/scmne/flask-labs/-/tree/part_3.2
)
|
## Initial Project Setup Required:
-
activation of virtual environment (see the lab instructions)
-
installation of the necessary project dependencies
### Project Dependencies:
*
to install a particular library:
```
pip install <LIBRARY>
```
e.g.:
``` pip install flask ```
*
to install all dependencies recursively from
```requirements.txt```
file:
```
sh
## How to run
pip install -r requirements.txt
```
*
to see all installed dependencies in the console:
```
console
pip freeze
```
*
to save the project dependencies in
```requirements.txt```
file:
```
console
pip freeze >
requirements.txt
```
flask run
\ 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