Skip to content

abinash124/INFOX-Connect-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infox Connect (Social Network for Infox IT)

A social network web application for InfoxIT

Getting started

To run the Node application locally in your machine:

  • After you call run this command to install node dependencies locally. npm install

  • To install react dependencies locally. npm run client-install

  • In /config/keys.js, replace the <MongoDB_URI> with your MongoDB URI. Also replace the <Secret or Key> with a random string.

  • Run the client & server with concurrently npm run server

  • Run the React client only npm run client

  • Server runs on http://localhost:5000 and client on http://localhost:3000

Dependencies

  • expressjs - The server for handling and routing HTTP requests
  • express-jwt - Middleware for validating JWTs for authentication
  • jsonwebtoken - For generating JWTs used by authentication
  • mongoose - For modeling and mapping MongoDB data to javascript
  • mongoose-unique-validator - For handling unique validation errors in Mongoose.
  • passport - For handling user authentication
  • stripe - For handling credit card transaction securely.
  • csurf - Middleware for validating user session and securely by creating a CSRF token.
  • nodemon - Dependency to check changes in the code and update the effect automatically on the server.
  • gravatar - A library to generate Gravatar URLs in Node.js Based on gravatar specs.

Application skeleton

  • server.js - The index entry point of the application. This file defines our express server and connects it to MongoDB using mongoose. It also requires the routes and models we'll be using in the application.
  • config/ - This folder contains configuration for passport and login authentications.
  • routes/ - This folder contains definition of route functions for different HTTP requests.
  • models/ - These folder contains schema definition for mongodb database.
  • client/ - This folder contains all Javascript,CSS and React code for front end.
  • validation/ - This folder contains validator for input validations.

Idea from Brad-Traversy Udemy MERN stack course


About

This is a social network for developers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors