GithubHelp home page GithubHelp logo

kitsonk / choak Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 2.0 189 KB

An example chat application using Deno and Oak

License: MIT License

HTML 10.91% CSS 5.85% TypeScript 49.12% JavaScript 34.12%

choak's Introduction

choak

An example chat application used to demonstrate Deno and Oak.

Usage

At the moment, you need to clone this repository locally:

$ git clone https://github.com/kitsonk/choak.git

You need to then do an install and build of the client:

$ cd choak/client
$ yarn install
$ yarn build

You then need to start the server locally, the first time you do this, all the dependencies for the server will be downloaded by Deno and cached:

$ deno server/main.ts --allow-net
Compiling choak/server/main.ts
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/mod.ts...
Downloading https://deno.land/x/[email protected]/colors/main.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/application.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/context.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/httpError.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/middleware.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/router.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/send.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/types.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/deps.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/request.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/response.ts...
Downloading https://deno.land/x/[email protected]/net/http.ts...
Downloading https://deno.land/x/[email protected]/net/http_status.ts...
Downloading https://deno.land/x/[email protected]/path/index.ts...
Downloading https://raw.githubusercontent.com/jshttp/mime-db/v1.37.0/db.json...
Downloading https://deno.land/x/[email protected]/net/bufio.ts...
Downloading https://deno.land/x/[email protected]/net/textproto.ts...
Downloading https://deno.land/x/[email protected]/net/util.ts...
Downloading https://deno.land/x/[email protected]/path/constants.ts...
Downloading https://deno.land/x/[email protected]/path/interface.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/encoding.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/media_types.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/pathToRegExp.ts...
Downloading https://raw.githubusercontent.com/kitsonk/oak/master/util.ts...
Downloading https://deno.land/x/[email protected]/colors/styles.ts...
Compiling choak/server/deps.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/mod.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/application.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/context.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/httpError.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/deps.ts
Compiling https://deno.land/x/[email protected]/net/http.ts
Compiling https://deno.land/x/[email protected]/net/bufio.ts
Compiling https://deno.land/x/[email protected]/net/util.ts
Compiling https://deno.land/x/[email protected]/net/textproto.ts
Compiling https://deno.land/x/[email protected]/net/http_status.ts
Compiling https://deno.land/x/[email protected]/path/index.ts
Compiling https://deno.land/x/[email protected]/path/constants.ts
Compiling https://raw.githubusercontent.com/jshttp/mime-db/v1.37.0/db.json
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/types.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/request.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/encoding.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/response.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/media_types.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/middleware.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/router.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/pathToRegExp.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/util.ts
Compiling https://raw.githubusercontent.com/kitsonk/oak/master/send.ts
Compiling https://deno.land/x/[email protected]/colors/main.ts
Compiling https://deno.land/x/[email protected]/colors/styles.ts
Compiling choak/server/handleError.ts
Compiling choak/server/logger.ts
Compiling choak/server/responseTime.ts
Compiling choak/server/staticContent.ts
Starting on: 127.0.0.1:8000

The application should now be accessible on http://localhost:8000/.


Copyright 2019 Kitson P. Kelly. All rights reserved. MIT License.

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.