Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.94 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.94 KB

Hack.Diversity MERN Stack Template

Getting Started

Wondering how to get this thing working? Well, do we have the READMEs for you!

Development Workflow

Note: If you are getting set up for the first time, please read the readmes in the client and server folders! You'll need to set up MongoDB to get the app working properly, and there are instructions in the server folder.

  • Open at least 2 terminal windows/tabs, all of which starting from the root directory of this project (i.e. ~/your/local/path/to/template-react-express-monorepo).

    • If you use vs code, you can go to Terminal tab and click on New Terminal to open a new terminal window in the footer of the vscode window.
    • You can organize your terminal windows by draging and dropping them around. e.g., you can drag the first terminal window to the right of the second terminal window. It is also possible to have multiple terminal windows open at the same time for other editors such as Sublime Text (look here for more info).
  • In the root directory of the project, run yarn install or npm install to install all the dependencies.

  • In one of those windows/tabs, navigate to the client directory and run yarn start. It can be two separate commands or one command joined by &&.

    cd client/ && yarn start
  • In another one of your terminals, navigate to the server directory and run yarn server

    cd server/ && yarn server
  • You should then see the frontend of the app by navigating to http://localhost:8000/ in a web browser

  • You can also ping the server directly at http://localhost:3000/, such as http://localhost:3000/api/items (it will be empty if you haven't added items yet)

FAQ

What is the MERN stack?

MERN stands for MongoDB, Express, React, Node which are the technologies used in this template.