8000 GitHub - stefanosAgelastos/chatNodejs: 4th semester project
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stefanosAgelastos/chatNodejs

Repository files navigation

Realtime Chat Web Application

Description

Exam project for third Semester elective: Full-Stack web development with Node.js and jQuery at KEA. By Stefanos Agelastos, June 2018.

Features

  • Chat room, where users post messages on a common wall.
  • System allows users to signup and login.
  • Persists encrypted password.
  • It makes use of JWT and expiring tokens for user sessions.
  • Persists message history.
  • Real-time messages using web-sockets. Login-SignUp screen Chat screen

Built With

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites:

You need to have Node.js and NPM installed on your system. To check if you have them installed run these commands in your terminal:

node -v
node -v

You also need to a local or remote SQL server up and running. To set up one (XAMPP) on your local machine click here. Create a database and a user.

Installing:

Clone the repository

git clone https://github.com/stefanosAgelastos/chatNodejs.git
cd .\chatNodejs\

Install dependencies

npm i 

Setting up the local database

Now you need to provide the endpoint of your database, database name, and user before starting the app. Go to database_credentials\local_credentials.js and copy paste the following lines of code:

exports.host = "localhost";
exports.database = "YOUR_DATABASE_NAME";
exports.user = "YOUR_USER_NAME";

/* exports.host = process.env.DB_HOST;
exports.database = process.env.DB_NAME;
exports.user = process.env.DB_USER;
exports.password = process.env.DB_PASSWORD; */

The app is now ready to connect to the databse, but before running the app, you need run a few commands on your terminal. These commands will create and run a migration that will set up the tables of your database. The last command will seed the database with some data.

npm run create-migration
npm run migrate
npm run seed

Run:

You are ready to start the app, run

npm start

or run

npm run start-dev

for development and hot reloading. The port is printed on the console.

About

4th semester project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0