๐Ÿ“ฆ jackjyq / fullstack_tutorial

A Simple CRUD Flask/React App Tutorial

โ˜… 68 stars โ‘‚ 24 forks ๐Ÿ‘ 68 watching
backendbootstrapcrud-applicationflaskflask-sample-applicationfrontendfullstackfullstack-developmentjavascriptnpmppmpythonreactreact-samplereact-sample-appreactstraptutorialtutorial-codevenvwebdevelopment
๐Ÿ“ฅ Clone https://github.com/jackjyq/fullstack_tutorial.git
HTTPS git clone https://github.com/jackjyq/fullstack_tutorial.git
SSH git clone git@github.com:jackjyq/fullstack_tutorial.git
CLI gh repo clone jackjyq/fullstack_tutorial
Yiqun (Jack) Jiang Yiqun (Jack) Jiang fix typo defae2a 4 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ backend
๐Ÿ“ docs
๐Ÿ“ frontend
๐Ÿ“„ .gitignore
๐Ÿ“„ README.md
๐Ÿ“„ README.md

FullStack Tutorial

In this fullstack tutorial, I will implement a simple CRUD App, including:

This CRUD App can manipulate a database which include a key and a pair of names, as follows:


Implementation

One of the fancy part of web app is that it is seperated by layers.

  • The top layer is frontend, which utilises the APIs provided by backend. When implementing frontend, we can assume that all the APIs has already been implemented.
  • The middle layer is backend, which utilises the functions in Model layer to manipuate database. When implementing backend, we assume that all the functions in Model layer has already been implemented.
  • The bottom layer is Model layer, which includes the implementation of manipulating database. I have provided a few implementations, they all have the same fuction interface.
You may start from any layer you prefer. If not sure, I recommend you to look at APIs first.