Demo repo with basic folder structure for a Express server that is sending data, private and public routes.
To simulate being logged in or logged out co into /src/middleware.auth.js and change the value of the isLoggedIn
to either true
or false
.
- After cloning the repo, run
npm install
to install the dependencies. - Run
npm run dev
to run the server in dev mode.