xiangming / jianshu

Built with the MERN stack (MongoDB, Express, React and NodeJS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jianshu demo

Built with the MERN stack (MongoDB, Express, React and NodeJS).

I use a online MongoDB Atlas to prepare the mock data in advance, you may see "loading" in the pages, be patient.

Technologies used

This project was created using the following technologies.

Client

  • react
  • react-dom
  • react-router-dom (To handle routing)

Server

  • express (minimalist web framework for Node.js)
  • mongoose (elegant mongodb object modeling for node.js)

Database

MongoDB (MongoDB Atlas)

Run locally

In order to run this project locally, clone the repository or download as zip and unzip on your machine.

Run the client on one terminal and the server on the other terminal.

In the first terminal

$ cd server
$ yarn (to install server-side dependencies)
& yarn dev (to start the server)

In the second terminal

$ cd client
$ yarn (to install client-side dependencies)
$ yarn dev (to start the client)

Docker

Using docker is simple.

docker compose build

# And then

docker compose up

About

Built with the MERN stack (MongoDB, Express, React and NodeJS)


Languages

Language:JavaScript 80.8%Language:SCSS 15.4%Language:Dockerfile 2.4%Language:HTML 1.1%Language:Shell 0.3%