Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A chat app with searching built for a workshop on websockets and webapps for the UVic webdev club

NotificationsYou must be signed in to change notification settings

uvicwebdev/websockets-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A chat room with message searching!

Summary of things covered

Requirements

Server

Node is a JavaScript interpreter and we need it to run our JavaScript server. Download ithere.

Database

Download Elastic Searchhere.

  • Download Elastic Search, unzip it, and put it somewhere easily accessible from the command line (e.g. desktop)

Supplementary

Java Development Kit (JDK) is used by ElasticSearch, our DB technology. Downloadhere.

  • NOTE: this is different from the JRE, which is included in the JDK.

Running the App

Node App

  • Before starting the server, we need to start the Elastic Search database:/path/to/elasticsearch/bin/elasticsearch
    • You'll see a smattering of logs
    • Leave this command prompt window/tab open
  • Runcurl http://localhost:9200 to ensure its running
    • You should get a JSON object containing info about the Elastic Search version
  • On your command line, change directories:cd app/
  • Install the necessary packages:npm install
    • This will look inside thepackage.json file for the project's dependencies
    • This will create apackage-lock.json file -- ignore it
  • To start the web app, run:node app.js

About

A chat app with searching built for a workshop on websockets and webapps for the UVic webdev club

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript83.2%
  • HTML9.3%
  • CSS7.5%

[8]ページ先頭

©2009-2025 Movatter.jp