Skip to content

Commit

Permalink
Release v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
App Generator committed Jan 16, 2022
1 parent d8cb3e5 commit ef90677
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 42 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## [1.0.4] 2022-01-16
### Improvements

- Bump Flask Codebase to [v2stable.0.1](https://github.com/app-generator/boilerplate-code-flask-dashboard/releases)
- Dependencies update (all packages)
- Flask==2.0.2 (latest stable version)
- flask_wtf==1.0.0
- jinja2==3.0.3
- flask-restx==0.5.1
- Forms Update:
- Replace `TextField` (deprecated) with `StringField`

## [1.0.3] 2021-12-02
### Improvements & Fixes

Expand Down
59 changes: 28 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,35 @@ Open-source **[Flask Dashboard](https://appseed.us/admin-dashboards/flask)** gen

> Features
- Up-to-date [dependencies](./requirements.txt): **Flask 2.0.1**
- DBMS: SQLite, PostgreSQL (production)
- DB Tools: SQLAlchemy ORM, Flask-Migrate (schema migrations)
- Modular design with **Blueprints**, simple codebase
- `Up-to-date dependencies`: **Flask 2.0.1**
- `DBMS`: SQLite, PostgreSQL (production)
- `DB Tools`: SQLAlchemy ORM, Flask-Migrate (schema migrations)
- Session-Based authentication (via **flask_login**), Forms validation
- Deployment scripts: Docker, Gunicorn / Nginx, Heroku
- Support via **Github** and [Discord](https://discord.gg/fZC6hup).
- `Deployment`: **Docker**, Gunicorn / Nginx, HEROKU
- Support via **Github** (issues tracker) and [Discord](https://discord.gg/fZC6hup).

<br />

> Links
- [Flask Adminator](https://appseed.us/admin-dashboards/flask-dashboard-adminator) - product page
- [Flask Adminator](https://flask-adminator.appseed-srv1.com/) - LIVE App
- 👉 [Flask Adminator](https://appseed.us/admin-dashboards/flask-dashboard-adminator) - product page
- 👉 [Flask Adminator](https://flask-adminator.appseed-srv1.com/) - LIVE App

<br />

## Quick Start in [Docker](https://www.docker.com/)
## Quick Start in `Docker`

> Get the code
```bash
$ git clone https://github.com/app-generator/flask-dashboard-adminator.git
$ cd flask-dashboard-adminator
$ git clone https://github.com/app-generator/flask-adminator.git
$ cd flask-adminator
```

> Start the app in Docker
```bash
$ docker-compose pull # download dependencies
$ docker-compose build # local set up
$ docker-compose up -d # start the app
$ docker-compose up --build
```

Visit `http://localhost:85` in your browser. The app should be up & running.
Expand All @@ -52,8 +49,8 @@ Visit `http://localhost:85` in your browser. The app should be up & running.

```bash
$ # Get the code
$ git clone https://github.com/app-generator/flask-dashboard-adminator.git
$ cd flask-dashboard-adminator
$ git clone https://github.com/app-generator/flask-adminator.git
$ cd flask-adminator
$
$ # Virtualenv modules installation (Unix based systems)
$ virtualenv env
Expand Down Expand Up @@ -100,23 +97,23 @@ The project is coded using blueprints, app factory pattern, dual configuration p
|
|-- apps/
| |
| |-- home/ # A simple app that serve HTML files
| | |-- routes.py # Define app routes
| |-- home/ # A simple app that serve HTML files
| | |-- routes.py # Define app routes
| |
| |-- authentication/ # Handles auth routes (login and register)
| | |-- routes.py # Define authentication routes
| | |-- models.py # Defines models
| | |-- forms.py # Define auth forms (login and register)
| |-- authentication/ # Handles auth routes (login and register)
| | |-- routes.py # Define authentication routes
| | |-- models.py # Defines models
| | |-- forms.py # Define auth forms (login and register)
| |
| |-- static/
| | |-- <css, JS, images> # CSS files, Javascripts files
| | |-- <css, JS, images> # CSS files, Javascripts files
| |
| |-- templates/ # Templates used to render pages
| | |-- includes/ # HTML chunks and components
| | | |-- navigation.html # Top menu component
| | | |-- sidebar.html # Sidebar component
| | | |-- footer.html # App Footer
| | | |-- scripts.html # Scripts common to all pages
| |-- templates/ # Templates used to render pages
| | |-- includes/ # HTML chunks and components
| | | |-- navigation.html # Top menu component
| | | |-- sidebar.html # Sidebar component
| | | |-- footer.html # App Footer
| | | |-- scripts.html # Scripts common to all pages
| | |
| | |-- layouts/ # Master pages
| | | |-- base-fullscreen.html # Used by Authentication pages
Expand Down Expand Up @@ -168,8 +165,8 @@ Steps to deploy on **Heroku**

```bash
$ # Clone the source code:
$ git clone https://github.com/app-generator/flask-dashboard-adminator.git
$ cd flask-dashboard-adminator
$ git clone https://github.com/app-generator/flask-adminator.git
$ cd flask-adminator
$
$ # Check Heroku CLI is installed
$ heroku -v
Expand Down
8 changes: 4 additions & 4 deletions apps/authentication/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"""

from flask_wtf import FlaskForm
from wtforms import TextField, PasswordField
from wtforms import StringField, PasswordField
from wtforms.validators import Email, DataRequired

# login and registration


class LoginForm(FlaskForm):
username = TextField('Username',
username = StringField('Username',
id='username_login',
validators=[DataRequired()])
password = PasswordField('Password',
Expand All @@ -20,10 +20,10 @@ class LoginForm(FlaskForm):


class CreateAccountForm(FlaskForm):
username = TextField('Username',
username = StringField('Username',
id='username_create',
validators=[DataRequired()])
email = TextField('Email',
email = StringField('Email',
id='email_create',
validators=[DataRequired(), Email()])
password = PasswordField('Password',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flask-dashboard-adminator",
"mastertemplate": "boilerplate-code-flask-dashboard",
"version": "1.0.3",
"version": "1.0.4",
"description": "Template project - Flask Boilerplate Code",
"repository": {
"type": "git",
Expand Down
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
flask==2.0.1
flask==2.0.2
flask_login==0.5.0
flask_migrate==3.1.0
WTForms==2.3.3
flask_wtf==0.15.1
flask_wtf==1.0.0
flask_sqlalchemy==2.5.1
sqlalchemy==1.4.23
sqlalchemy==1.4.29
email_validator==1.1.3
python-decouple==3.4
python-decouple==3.5
gunicorn==20.1.0
jinja2==3.0.1
jinja2==3.0.3
flask-restx==0.5.1

0 comments on commit ef90677

Please sign in to comment.