Giter Site home page Giter Site logo

wzslr321 / flutter_web_fullstack_boileplate Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 10.0 24.42 MB

Full-Stack Flutter website boilerplate with Golang(GIN), PostgreSQL, Redis and Nginx, fully Dockerized

License: MIT License

Kotlin 0.33% Dart 63.21% Swift 1.02% Objective-C 0.10% HTML 2.26% Go 31.79% Dockerfile 1.31%
golang flutter postgesql redis nginx docker docker-compose

flutter_web_fullstack_boileplate's Introduction

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 ⭐



How to launch it locally?

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

flutter_web_fullstack_boileplate's People

Contributors

dependabot[bot] avatar wzslr321 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_web_fullstack_boileplate's Issues

ERROR: Service 'app' failed to build : Build failed

Hi,
I am facing error in build:

Switching to flutter channel 'beta'...
git: fatal: 'origin/beta' is not a commit and a branch 'beta' cannot be created from it
Switching channels failed with error code 128.
The command '/bin/sh -c flutter channel beta     && flutter upgrade     && flutter config --enable-web     && sudo apt-get update     && sudo apt-get install -y nginx     && sudo apt-get install -y chromium-browser     && sudo rm -rf /var/lib/apt/lists/*' returned a non-zero code: 128
ERROR: Service 'app' failed to build : Build failed

migrate to null safety

Hi @wzslr321 ,

Hope you are all well !

I wanted to try your project and I was wondering if you can migrate the flutter app to null-safety ?

Cheers,
Luc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.