Skip to content

Commit

Permalink
Added Files with Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adgsenpai committed Jan 4, 2022
1 parent 3d5bc6f commit f2ddf17
Show file tree
Hide file tree
Showing 272 changed files with 74,472 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# ADGWEBSDK
## an SDK to make Python Flask Applications

#### Template Styles
This is powered by Soft-UI you can view the docs [here](https://www.creative-tim.com/learning-lab/bootstrap/overview/soft-ui-dashboard)

#### Front-End Support
You could use `React.js`, `JavaScript`, `Angular`, `JQuery` ... etc for frontend stuff.

#### Back-End Stuff
This SDK is powered by `Flask` which is powered by `Python` and `Django` Web Frame Work

#### Getting Started

First, you need to download/install the modules for python in `requirements.txt`


you can do that with the command below
`````
pip install -r requirements.txt
`````

- To run the application
`python3 server.py`

#### Technical Details
File directory
```
--pages
-index.html # You add your pages here
--static
-css #Styling goes here
-fonts #Fonts goes here
-img #Image Resources goes here
-js #JavaScript Files goes here
-scss - #SCSS Styling goes here
```


72 changes: 72 additions & 0 deletions pages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="76x76" href="./static/img/apple-icon.png">
<link rel="icon" type="image/png" href="./static/img/favicon.svg">
<title>
ADGSDK
</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
<link href="./static/css/nucleo-icons.css" rel="stylesheet" />
<link href="./static/css/nucleo-svg.css" rel="stylesheet" />
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
<link href="../static/css/nucleo-svg.css" rel="stylesheet" />
<link id="pagestyle" href="./static/css/soft-ui-dashboard.css?v=1.0.3" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel='stylesheet' href='https://cdn.plyr.io/3.6.2/plyr.css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>

<body>

<div class="container">
<div class="card">
<div class="card-header p-0 mx-3 mt-3 position-relative z-index-1">
<a href="javascript:;" class="d-block">

</a>
</div>

<div class="card-body pt-2">
<span class="text-gradient text-primary text-uppercase text-xs font-weight-bold my-2">ADGSDK</span>
<a href="javascript:;" class="card-title h5 d-block text-darker">
Hello World!
</a>
<br>
<p class="card-description mb-4">
Click the link below to view the HTML docs.
</p>
<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">
View Docs
</a>
</div>
</div>
</div>

</div>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/html5media/1.1.8/html5media.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/plyr/3.6.8/plyr.min.js'></script>

</body>

<script>
var win = navigator.platform.indexOf('Win') > -1;
if (win && document.querySelector('#sidenav-scrollbar')) {
var options = {
damping: '0.5'
}
Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
}
</script>
<!-- Github buttons -->
<script async defer src="https://buttons.github.io/buttons.js "></script>
<script src="./static/js/soft-ui-dashboard.min.js?v=1.0.3 "></script>
</body>

</html>
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flask
16 changes: 16 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ADGSTUDIOS - server.py

from flask import Flask,render_template,send_from_directory

app = Flask(__name__,template_folder='./pages')

# allows for files to be refreshed in server
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0

@app.route('/')
def home():
return render_template('index.html')

#running server on port 5000 - you can change the values here
if __name__ == "__main__":
app.run(host="0.0.0.0",port=5000)
Loading

0 comments on commit f2ddf17

Please sign in to comment.