A Penguin Chat 2 emulator, written in Node.js with the use of Express to imitate PHP's long polling technique. Penguin Chat 2 originally used long polling, but we can use this in Node.js as well!
- If you're running this on a VPS, install NGINX and set this in the config of NGINX: proxy_set_header X-Forwarded-For $remote_addr;
- Download this repository
- Download & install Node.js
- Run the following command in CMD: npm install express knex mysql2
- Download & install MySQL for your OS (Windows, Linux etc)
- Download & install MySQL Workbench to import, browse and edit the database
- Make sure you did everything in Installation and have MySQL running
- Open CMD
- Use the CD command to CD to the folder where Run.js is located
- Enter the command: node Run.js
- Open a new webpage and browse to: http://localhost/
Make the database class async and await?