Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying DART Essentials
  • Table Of Contents Toc
DART Essentials

DART Essentials

By : Sikora
4.8 (4)
close
close
DART Essentials

DART Essentials

4.8 (4)
By: Sikora

Overview of this book

This book is targeted at expert programmers in JavaScript who want to learn Dart quickly. Some previous experience with OOP programming in other languages and a good knowledge of JavaScript are assumed.
Table of Contents (11 chapters)
close
close
10
Index

Chapter 7. Server-side Applications with Dart

In this chapter, we'll take a look at developing command-line server-side apps. In particular, we'll learn the following topics:

  • How to process command-line arguments with the args package
  • Writing a small chat app with a WebSockets server in Dart
  • How to access filesystem with the dart:io library
  • Storing data to the MySQL database with the sqljocky package
  • Writing a small web server using the route package
  • How to use Apache and nginx servers as reverse proxies for Dart HTTP servers

This chapter assumes that you already have at least basic experience with CLI scripts or Unix environments in general. If you're a Windows user, take a look at Cygwin (www.cygwin.com), which is a Unix-like environment for Windows, or ideally, install Ubuntu into a virtual machine. The Dart SDK is now available for Debian and Ubuntu Linux distributions, while Dart Editor is currently available only for Ubuntu Linux.

We'll set off with a few notes...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
DART Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon