1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Re-add Craig Labenz's code sharing sample (#1466)

* Revert "Revert "Add code sharing sample (#1444)" (#1464)"

This reverts commit dc50c46ef1.

* Opting out failing tests on Windows for CI

Co-authored-by: Craig Labenz <craig.labenz@gmail.com>
This commit is contained in:
Brett Morgan
2022-10-18 13:15:31 -04:00
committed by GitHub
parent 62d5d8d095
commit d99fb974a0
152 changed files with 5229 additions and 1 deletions

24
code_sharing/Makefile Normal file
View File

@@ -0,0 +1,24 @@
# MacOS/Linux-only. Sadly, this is only helpful as documentation for Windows.
# LOCAL / DOCKER
run-server:
# Depends on `make build`
docker-compose up -d
stop-server:
docker-compose stop
# Flutter
flutter-local:
cd client && flutter run -d macos
test:
(cd shared && dart test)
(cd server && dart test)
(cd client && flutter test)
# Docker
build:
(cd server && flutter pub get)
docker build ./server -t codesharingserver -f server/Dockerfile