Skip to content

Commit f2ddf17

Browse files
committed
Added Files with Docs
1 parent 3d5bc6f commit f2ddf17

272 files changed

Lines changed: 74472 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ADGWEBSDK
2+
## an SDK to make Python Flask Applications
3+
4+
#### Template Styles
5+
This is powered by Soft-UI you can view the docs [here](https://www.creative-tim.com/learning-lab/bootstrap/overview/soft-ui-dashboard)
6+
7+
#### Front-End Support
8+
You could use `React.js`, `JavaScript`, `Angular`, `JQuery` ... etc for frontend stuff.
9+
10+
#### Back-End Stuff
11+
This SDK is powered by `Flask` which is powered by `Python` and `Django` Web Frame Work
12+
13+
#### Getting Started
14+
15+
First, you need to download/install the modules for python in `requirements.txt`
16+
17+
18+
you can do that with the command below
19+
`````
20+
pip install -r requirements.txt
21+
`````
22+
23+
- To run the application
24+
`python3 server.py`
25+
26+
#### Technical Details
27+
File directory
28+
```
29+
--pages
30+
-index.html # You add your pages here
31+
--static
32+
-css #Styling goes here
33+
-fonts #Fonts goes here
34+
-img #Image Resources goes here
35+
-js #JavaScript Files goes here
36+
-scss - #SCSS Styling goes here
37+
```
38+
39+

pages/index.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<link rel="apple-touch-icon" sizes="76x76" href="./static/img/apple-icon.png">
8+
<link rel="icon" type="image/png" href="./static/img/favicon.svg">
9+
<title>
10+
ADGSDK
11+
</title>
12+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
13+
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
14+
<link href="./static/css/nucleo-icons.css" rel="stylesheet" />
15+
<link href="./static/css/nucleo-svg.css" rel="stylesheet" />
16+
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
17+
<link href="../static/css/nucleo-svg.css" rel="stylesheet" />
18+
<link id="pagestyle" href="./static/css/soft-ui-dashboard.css?v=1.0.3" rel="stylesheet" />
19+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
20+
<link rel='stylesheet' href='https://cdn.plyr.io/3.6.2/plyr.css'>
21+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
22+
</head>
23+
24+
<body>
25+
26+
<div class="container">
27+
<div class="card">
28+
<div class="card-header p-0 mx-3 mt-3 position-relative z-index-1">
29+
<a href="javascript:;" class="d-block">
30+
31+
</a>
32+
</div>
33+
34+
<div class="card-body pt-2">
35+
<span class="text-gradient text-primary text-uppercase text-xs font-weight-bold my-2">ADGSDK</span>
36+
<a href="javascript:;" class="card-title h5 d-block text-darker">
37+
Hello World!
38+
</a>
39+
<br>
40+
<p class="card-description mb-4">
41+
Click the link below to view the HTML docs.
42+
</p>
43+
<a href="https://www.creative-tim.com/learning-lab/bootstrap/overview/soft-ui-dashboard" style="color:blue" class="card-title h9 d-block text-darker">
44+
View Docs
45+
</a>
46+
</div>
47+
</div>
48+
</div>
49+
50+
</div>
51+
<!-- partial -->
52+
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
53+
<script src='https://cdnjs.cloudflare.com/ajax/libs/html5media/1.1.8/html5media.min.js'></script>
54+
<script src='https://cdnjs.cloudflare.com/ajax/libs/plyr/3.6.8/plyr.min.js'></script>
55+
56+
</body>
57+
58+
<script>
59+
var win = navigator.platform.indexOf('Win') > -1;
60+
if (win && document.querySelector('#sidenav-scrollbar')) {
61+
var options = {
62+
damping: '0.5'
63+
}
64+
Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
65+
}
66+
</script>
67+
<!-- Github buttons -->
68+
<script async defer src="https://buttons.github.io/buttons.js "></script>
69+
<script src="./static/js/soft-ui-dashboard.min.js?v=1.0.3 "></script>
70+
</body>
71+
72+
</html>

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flask

server.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ADGSTUDIOS - server.py
2+
3+
from flask import Flask,render_template,send_from_directory
4+
5+
app = Flask(__name__,template_folder='./pages')
6+
7+
# allows for files to be refreshed in server
8+
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
9+
10+
@app.route('/')
11+
def home():
12+
return render_template('index.html')
13+
14+
#running server on port 5000 - you can change the values here
15+
if __name__ == "__main__":
16+
app.run(host="0.0.0.0",port=5000)

0 commit comments

Comments
 (0)