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.
yarn
with the command npm install -g yarn
.env
file with a variable called DB_URL
and paste your MongoDB url:DB_URL=mongodb://mongodburl.example.com:portnumber
cd
into client
and run the command yarn install
to install all dependenciesyarn dev
in the same directorycd
into server
and run yarn install
and npm start
to install all dependencies and start the server.var port = normalizePort(process.env.PORT || '3001');
Change it to any port you like!