Online chat application made using ExpressJS and HandlebarsJS. Final semester project for CS546, Web Programming I.
-
Clone the repository:
git clone https://github.com/ZhangTerrence/nexus.git
-
Create a .env file at the app's root. The file must have the following values:
- NODE_ENV, the current environment of the node application ("prod" | "dev").
- PORT, the port number at which the web server will be listening on.
- MONGO_CONNECTION_STRING, the connection string for MongoDB.
- SESSION_SECRET, the secret used when generating sessions.
-
Run the application in dev mode:
npm run dev
This project uses ESLint for its linting and Prettier for its formatting. To change configurations, go to .eslintrc.json and .prettierc.json for linting and formatting respectively.
npm run lint:check
Checks if code satisfies ESLint linting configuration rules.
npm run lint:fix
Fixes any errors that can be auto-fixed.
npm run format:check
Checks if code satisfies Prettier formatting configuration rules.
npm run format:fix
Formats the code.
Simply run the following to seed the database.
npm run seed