Dart-com-Shelf - Web server básico feito com dart e shelf, configurações de rotas e conexão com mysql.

Overview

A server app built using Shelf, configured to enable running with Docker.

This sample code handles HTTP GET requests to / and /echo/<message>

Running the sample

Running with the Dart SDK

You can run the example with the Dart SDK like this:

$ dart run bin/server.dart
Server listening on port 8080

And then from a second terminal:

$ curl http://0.0.0.0:8080
Hello, World!
$ curl http://0.0.0.0:8080/echo/I_love_Dart
I_love_Dart

Running with Docker

If you have Docker Desktop installed, you can build and run with the docker command:

$ docker build . -t myserver
$ docker run -it -p 8080:8080 myserver
Server listening on port 8080

And then from a second terminal:

$ curl http://0.0.0.0:8080
Hello, World!
$ curl http://0.0.0.0:8080/echo/I_love_Dart
I_love_Dart

You should see the logging printed in the first terminal:

2021-05-06T15:47:04.620417  0:00:00.000158 GET     [200] /
2021-05-06T15:47:08.392928  0:00:00.001216 GET     [200] /echo/I_love_Dart

"# Dart-com-Shelf"

You might also like...

Neste meu primeiro contato com flutter, foi feito um simples app para testar os principais widgets do flutter e entender a peculiaridade de cada um.

primeiro_projeto A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Sep 17, 2022

O Invest App é um aplicativo de plataforma de investimento feito em FLutter para encontrar, rastrear e proteger seus investimentos. É um MVP aberto para estudo e portfólio.

O Invest App é um aplicativo de plataforma de investimento feito em FLutter para encontrar, rastrear e proteger seus investimentos. É um MVP aberto para estudo e portfólio.

Invest App Tópicos Descrição do projeto Funcionalidades Aplicação Ferramentas utilizadas Acesso ao projeto Abrir e rodar o projeto Descrição do projet

Oct 24, 2022

Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment 🚀

Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment 🚀

A complete backend solution for your [Flutter / Vue / Angular / React / iOS / Android / *ANY OTHER*] app Appwrite 0.12 has been released! Learn what's

Jan 3, 2023

A zero-dependency web framework for writing web apps in plain Dart.

Rad Rad is a frontend framework for creating fast and interactive web apps using Dart. It's inspired from Flutter and shares same programming paradigm

Dec 13, 2022

Socketio dart server and client - Full Socket.io implementation using Dart Lang

Socketio dart server and client - Full Socket.io implementation using Dart Lang

Getting Started Step 1: Run dart_server.dart Step 2: Android Emulator has proble

Jan 23, 2022

Trying out Flutter for desktop Web app development as an alternative to SPA frameworks (such as React and Angular) by recreating one of the pages of an existing CV Management web app

HTML Renderer Demo CanvasKit Renderer Demo Reddit discussion This repo contains a PoC of using Flutter as a traditional SPA framework for creating a d

Oct 11, 2022

An isolated worker for Flutter (Isolate) and Web (Web Worker). Behaves almost the same as the compute function, except it is not a one-off worker.

A singleton isolated worker for all platforms. On most platforms, it uses Flutter's Isolate, except on the web, since Isolate is not available, it use

Nov 11, 2022

flutter web app with given code and example. Step by step teaching how to build a flutter web app with backend

flutter_web A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Oct 26, 2022
Owner
Luanzera07
Aluno de Programação
Luanzera07
Platzi trips app - Curso básico y avanzado de Flutter en platzi

platzi_trips_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

null 0 Jan 2, 2022
Buildpack dart - A server app built using Shelf, configured to enable running with Docker

Hosted at https://dart-buildpack-demo-ruyjilv5wq-uc.a.run.app/ Buildpack defined

Kevin Moore 12 Dec 15, 2022
A server app built using Shelf, configured to enable running with Docker

A server app built using Shelf, configured to enable running with Docker. This sample code handles HTTP GET requests to / and /echo/<message> Requests

Tornike Gogberashvili 1 Jan 26, 2022
A server app built using Shelf, configured to enable running with Docker

A server app built using Shelf, configured to enable running with Docker. Project Structure Running the sample Running with the Dart SDK You can run t

null 0 Jan 12, 2022
A server app built using Shelf, configured to enable running with Docker.

A server app built using Shelf, configured to enable running with Docker.

RAHUL SHARMA 1 May 23, 2022
Dart Web API Template Using Google Shelf Framework and Postgres Drivers, read readme to learn how to use

Shelf Web Framework Template by Alex Merced of AlexMercedCoder.com Cloning the Template git clone https://github.com/AlexMercedCoder/DartShelfPostgres

Alex Merced 16 Dec 26, 2022
A simple web API to generate images from a url, made using shelf package.

Webshot API Yet another simple webshot API but written in dart and built using Shelf library to generate images from url. This is really useful for li

wrench 15 Oct 19, 2022
Minha primeira aplicação android utilizando Flutter feito no curso de Flutter da Cod3r Cursos Online. O foco dessa aplicação foi um contato inicial com o Flutter.

expenses Expenses é uma aplicação android simples feita em Flutter para controlar despesas pessoais. A aplicação consiste em: Listar transações feitas

Guilherme Teixeira Ais 2 Apr 19, 2022
Aplicativo feito para auxiliar no uso da técnica pomodoro.

Pomodoro Aplicativo feito para auxiliar no uso da técnica pomodoro. Descrição O aplicativo Pomodoro foi feito com a finalidade de auxiliar os estudos

Allan Gilbert 2 Feb 12, 2022
Um simples app de contador de pessoas feito em Flutter

Contador de Pessoas App em Flutter que realizar contagem de pessoas em Flutter. O app seria usado para permissão de quantidade de pessoas dentro de um

Gabriel Henrique Cardoso dos Santos 0 May 5, 2022