|
1 |
| -# Dockerized ReactJS, Flask, LDAP boilerplate |
| 1 | +# Dockerized ReactJS, Flask & LDAP boilerplate |
2 | 2 |
|
3 | 3 | <p align="center">
|
4 | 4 | <a href="https://travis-ci.com/flavienbwk/reactjs-flask-ldap-boilerplate" target="_blank">
|
|
8 | 8 | </p>
|
9 | 9 | <p align="center">ReactJS + Flask + Docker (+ K8S)<br/>boilerplate using a token-based LDAP authentication</p>
|
10 | 10 |
|
11 |
| -> :smiley: Suggestions and feedbacks are [highly appreciated](https://github.com/flavienbwk/reactjs-flask-ldap-boilerplate/issues/new) |
12 |
| -
|
13 | 11 | ## Features
|
14 | 12 |
|
15 | 13 | - Docker architecture
|
16 | 14 | - LDAP authentication
|
17 | 15 | - Token-based API authentication
|
18 |
| -- Automatic [token renewal](./api/app/service/auth_service.py#L45) with [a Flask middleware](./api/app/service/auth_service.py#L32) |
| 16 | +- Automatic [token renewal](./api/app/src/service/auth_service.py#L43) with [a Flask middleware](./api/app/src/service/auth_service.py#L30) |
19 | 17 | - Swagger documentation
|
20 | 18 | - Flask-Migrate
|
21 | 19 | - Flask-SQLAlchemy (PostgreSQL was chosen)
|
22 |
| -- [Logging and logs rotation](./api/app/utils/Logger.py#L11) |
| 20 | +- [Logging and logs rotation](./api/app/src/utils/Logger.py#L12) |
23 | 21 | - [Choose](./app/app/src/App.js#L65) between sidebar and navbar (or use both !)
|
24 | 22 | - Responsive design
|
25 | 23 | - [Production](./prod.docker-compose.yml) and [development](./docker-compose.yml) builds
|
@@ -77,7 +75,7 @@ This section will explain how to properly run this project and set-up the LDAP s
|
77 | 75 |
|
78 | 76 | 4. Run the API
|
79 | 77 |
|
80 |
| - The database will be automatically set-up thanks to Flask Migrate and any future modification brought to [models](./api/app/model) will be automatically applied when the API is **restarted**. |
| 78 | + The database will be automatically set-up thanks to Flask Migrate and any future modification brought to [models](./api/app/src/model) will be automatically applied when the API is **restarted**. |
81 | 79 |
|
82 | 80 | You might wait some time before the database get updated after starting the API :
|
83 | 81 |
|
@@ -142,7 +140,7 @@ I've used [Scaleway Kapsule](https://www.scaleway.com/en/kubernetes-kapsule) to
|
142 | 140 |
|
143 | 141 | 1. Building production images (optional)
|
144 | 142 |
|
145 |
| - Images are tagged `flavienb/reactjs-flask-ldap-boilerplate-{api,web,nginx}:latest` by default. Edit it in `prod.docker-compose.yml` before building. |
| 143 | + Images are tagged `flavienb/reactjs-flask-ldap-boilerplate-{api,app,nginx}:latest` by default. Edit it in `prod.docker-compose.yml` before building. |
146 | 144 |
|
147 | 145 | :information_source: You might be interested in pushing your images in a private registry (e.g: [Scaleway's Container Registry service](https://www.scaleway.com/en/container-registry/)).
|
148 | 146 |
|
@@ -177,3 +175,5 @@ I've used [Scaleway Kapsule](https://www.scaleway.com/en/kubernetes-kapsule) to
|
177 | 175 | 4. Configure the first user
|
178 | 176 |
|
179 | 177 | **Create** your first user by accessing phpLDAPAdmin at [endpoint defined](./k8s/ingress.yaml#L35) and [following the LDAP user creation guide](./CREATE_LDAP_USER.md).
|
| 178 | +
|
| 179 | +> :smiley: Suggestions and feedbacks are [highly appreciated](https://github.com/flavienbwk/reactjs-flask-ldap-boilerplate/issues/new) |
0 commit comments