All HTML and React components for the website are returned at layout.js
in src\app
. To start reading up on how it works, check that file.
Template for building projects with the MERN (MongoDB, Express, React, Node.js) stack.
This template was generated using create-next-app
and express-generator
for the
client and server, respectively.
- Install Node and npm here
- Install
yarn
with the commandnpm install -g yarn
- Set up a MongoDB Atlas instance. See this video for help!
- Create a
.env
file with a variable calledDB_URL
and paste your MongoDB url:
DB_URL=mongodb://mongodburl.example.com:portnumber
cd
intoclient
and run the commandyarn install
to install all dependencies- To start the client, run
yarn dev
in the same directory - In another command window,
cd
intoserver
and runyarn install
andyarn start
to install all dependencies and start the server. - Happy hacking!