![]() ![]() env/bin/activate (.env) appbuilder % flask fab create-app -name demo-myview-02 -engine SQLAlchemy Downloaded the skeleton app, good coding! (.env) appbuilder % (.env) appbuilder % ls demo-myview-01 demo-myview-02 (.env) appbuilder % (.env) appbuilder % cd demo-myview-02 (.env) demo-myview-02 % (.env) demo-myview-02 % (.env) demo-myview-02 % tree. Step 1: Preparing the default Web App and the Postgres Database ServerĪlso same as what we did in my last post, we start from the default skeleton web app. In this post, we build everything in the virtual environment created exactly the same as demonstrated in my last post. Implemented Data Model Building the Web App ![]() In each table of the ERD illustrated below, the columns with the gray background are primary and foreign keys (the keys with italic font are foreign keys). Data Modelīased on the feature requirements, the data model is created as illustrated below. Only the engineer who added the task can edit or delete the task. ![]() All tasks added by the three engineers are publicly visible. They can add tasks of any type of the two projects. The three engineers have to log in to their own accounts to add tasks. We have three engineers, Steve Johnson, Jay Smith, and Bob Hansen, working on these tasks. ![]() The project Proj-2 has five types of sequential tasks, P2T1, P2T2, P2T3, P2T4, and P2T5. The project Proj-1 has three types of sequential tasks, P1T1, P1T2, and P1T3. Here we assume that we have two types of projects, Proj-1 and Proj-2. The core feature of this simple web application is project/task record management. Designing Data Modelīefore jumping into the implementations, let’s first design the data model of our simple web application. With the application, users can add new project/task records into the database, search, and edit or delete an existing project/task record. We will include a PostgreSQL database into our application. In this post, I am going to further demonstrate how to develop a more complicated web application, which manages project/task progress. In the last post, I have demonstrated how to build a simple (static) web application using Flask AppBuilder (F.A.B). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |