Code Monkey home page Code Monkey logo

mern-messenger's Introduction

MERN Messenger

Outline | Installation Instructions | Tech stack | Example use | Future work

Use the MERN stack to build a message board app.

Prerequisite setup:

  • Clone this repo to your local machine and cd into it.
  • Download Node.js if you don't have it already - instructions here.
  • Run cd backend && npm install and cd ../frontend && npm install to get the project's dependencies.

Database setup:

In order to persist messages across reloads, the app makes use of MongoDB. In order to use this in the dev environment, you must have it installed locally. Instructions on how to do this here.

Running the site

Development:

  • Start the MongoDB connection with brew services run mongodb-community.
  • Run the frontend server in one terminal window, from the frontend directory, with the command npm start. Run the backend server in another terminal window, from the backend directory, with npm start.
  • Visit http://localhost:3000 to use the site.

Production:

  • There isn't a production version at the moment. See future work section below.

Testing

  • Tests can be run against both the frontend and the backend code. In either directory, run npm test.

Front-end:

  • HTML & CSS
  • React

Back-end:

  • Node.js
  • Express
  • MongoDB

Testing:

  • Mocha, Chai for backend
  • Jest, Enzyme for frontend
  • Supertest for testing the API connections

You can see a screenshot of the site in use below. You can add posts, and update or delete existing posts.

screenshot

On a revisit of the project, I would like to add the following:

  • CI & CD
  • On the CD point, production deployment
  • Authentication

mern-messenger's People

Contributors

jlblumberg avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.