Skip to content

Node.js (no frameworks) server for the Ajax exercise for the Code Your Future students in Glasgow.

License

Notifications You must be signed in to change notification settings

Michael-Antczak/ajax-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js API server

Node.js server for the Ajax exercise for the Code Your Future students in Glasgow. It is supposed to mimic a basic chatroom functionality.

How it works

Every chatroom has its own id. You can POST meesages to the chatrom, but only the last message received by the server is stored internally. You can view the last message with GET request, see below.

API

Server url: http://ajax-cyf.eu-west-1.elasticbeanstalk.com/

Requests

POST

/chatroom/?id=[ID] where ID is of your choice

You can POST message with curl:

curl -d "Hello there" "http://ajax-cyf.eu-west-1.elasticbeanstalk.com/chatroom/?id=67"
GET

/chatroom/?id=[ID] where ID is of your choices, i.e.

curl -v http://ajax-cyf.eu-west-1.elasticbeanstalk.com/chatroom/?id=67

About

Node.js (no frameworks) server for the Ajax exercise for the Code Your Future students in Glasgow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published