<commit_before># Getting Started

1. Install the necessary packages from package.json:

> npm install 

2. Run the service:

> npm start

3. Visit the page:

> http://localhost:3000/world

# Notes

Note that NodeJS Express is serving on port 3000 and Socket.IO maintains a separate connection on port 3001.  These ports are arbitrary.  

'3000' is set in /bin/www with this line:

> app.set('port', process.env.PORT || 3000);

and '3001' is set in app.js with this line:

> server.listen(3001);
<commit_msg>fixed act 2 readme with all necessary steps and some additional details<commit_after>With this project, we showcase some basic features of the **Express** web application framework for Node.  We also show how Socket.IO integrates with Express to easily provide real-time push messaging in both directions between server and client.

# Getting Started

1. Install the necessary packages from package.json. This application uses **express**, **redis**, and **socket.io**, among other standard middleware for parsing and templating.

		npm install 

2. Install redis:

		brew|fink|apt-get install redis

2. Run the services:
	
		redis-server
		npm start

3. Visit the page:

		http://localhost:3000/world

The /world page presents a basic global-style chat interface. The user must provide a nickname, and then may broadcast messages to all other users at /world. 

# Notes

Note that NodeJS Express is serving on port 3000 and Socket.IO maintains a separate connection on port 3001.  

These ports are arbitrary.  

**port 3000** is set in **/bin/www** with this line:

		app.set('port', process.env.PORT || 3000);

**port 3001** is set in **app.js** with this line:

		server.listen(3001);

{'fraction_non_alphanumeric': 0.08431603773584906, 'fraction_numerical': 0.03773584905660377, 'mean_word_length': 3.918840579710145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4799526', 'n_tokens_mistral': 545, 'n_tokens_neox': 473, 'n_words': 230}