Full documentation and the article series can be found here,
Clone the project
git clone https://github.com/RukshanJS/websockets-nestjs-flutter.git
Go to the project directory
cd websockets-nestjs-flutter
Install dependencies for backend
cd backend/server-timer-backend
npm install
Start the backend server
npm run start:dev
Navigate to the frontend/server_timer_frontend
folder
Install dependencies for frontend
flutter pub get
IMPORTANT : You have to replace the value 192.168.X.X
in /lib/sockets/socket_service.dart
with IP address of your localhost
.
Run flutter app
flutter run
Do you think I deserve a cup of coffee for this project? 😃