1 Star 0 Fork 0

byself / flutter_web_fullstack_boileplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Dockerized Flutter(web) + Golang(Gin) + PostgreSQL(with GORM) + Redis --> Template


This repository is a fully dockerized application, which by default is a web app, but modyfing Dockerfiles lets to run it on mobile device too. Front-end is written in Flutter , Back-end in Golang with Gin framework. Databases are PostgreSQL (with GORM) and Redis ( Redigo ). Reverse proxy with Nginx . It contains simple CRUD functions for both, Postgresql and Redis. Back-end is finished, Front-end has only fetch functions implemented.



Found it useful? Want more updates?

Show your support by giving a :star:


How to launch it locally?

Here is a video showing how to work with this repository

Note the difference in containers name on the video - fggp was updated to flutter_web_fullstack_boilerplate

You can also ue instructions below.


1. Make sure that you have docker and docker-compose installed on your machine.


2. Clone the repository to the folder of your choice, by executing: git clone hhttps://github.com/wzslr321/flutter_web_fullstack_boileplate.git in the console.


3. Navigate to "/" path of cloned repository. To ensure that you are in a right place, run ls. Outpout should look like this:

LICENSE README.md all_lint_rules.yaml analysis_options.yaml app data docker-compose.yml env nginx server

4. Run : docker-compose up --build in the console.


5. Wait for the docker installation to complete. It probably is going to take some time, depending on your internet connection.


When the installation will be finished, you should see this output: img


Now just head to the http://0.0.0.0/#/ in the browser too see the website!

Project tree ( without meaningless files)

|├── all_lint_rules.yaml
├── analysis_options.yaml
├── app
│   ├── 
│   ├── assets
│   │   ├── fonts
│   │   └── images
│   ├── Dockerfile
│   ├── lib
│   │   ├── components
│   │   │   └── form
│   │   │       ├── form.dart
│   │   │       └── form_field.dart
│   │   ├── constants.dart
│   │   ├── main.dart
│   │   ├── models
│   │   │   ├── announcements
│   │   │   │   ├── announcement_class.dart
│   │   │   │   └── announcement_list.dart
│   │   │   ├── http_exception.dart
│   │   │   ├── posts
│   │   │   │   ├── post_class.dart
│   │   │   │   ├── post_id_response.dart
│   │   │   │   └── posts_list.dart
│   │   │   └── provider_exception.dart
│   │   ├── providers
│   │   │   ├── announcements_provider.dart
│   │   │   └── posts_provider.dart
│   │   └── screens
│   │       ├── announcements_screen
│   │       │   ├── announcements_screen.dart
│   │       │   └── widgets
│   │       │       ├── announcement_field.dart
│   │       │       └── announcement_item.dart
│   │       ├── home_screen
│   │       │   └── home_screen.dart
│   │       ├── loading_screen.dart
│   │       ├── page_not_found_screen
│   │       │   └── page_not_found.dart
│   │       └── posts_screen
│   │           ├── posts_screen.dart
│   │           └── widgets
│   │               ├── post_field.dart
│   │               └── post_item.dart
│   ├── pubspec.yaml
│   ├── README.md
│   └── web
│       ├── index.html
│       └── manifest.json
├── docker-compose.yml
├── env
│   ├── flutter.env
│   └── postgre.env
├── nginx
│   ├── Dockerfile
│   └── nginx.conf
└── server
    ├── air.conf
    ├── conf
    │   └── app.ini
    ├── database
    │   ├── postgres
    │   │   ├── funcs
    │   │   │   └── posts.go
    │   │   └── postgres.go
    │   └── redis
    │       ├── funcs
    │       │   ├── announcements.go
    │       │   └── majors.go
    │       └── redis.go
    ├── Dockerfile
    ├── main.go
    ├── main_test.go
    ├── models
    │   ├── announcement.go
    │   └── post.go
    ├── routers
    │   ├── api
    │   │   ├── announcements.go
    │   │   └── posts.go
    │   └── router.go
    ├── settings
    │   └── settings.go

MIT License Copyright (c) 2021 Wiktor Zając Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/byself/flutter_web_fullstack_boileplate.git
git@gitee.com:byself/flutter_web_fullstack_boileplate.git
byself
flutter_web_fullstack_boileplate
flutter_web_fullstack_boileplate
main

搜索帮助