This is the back end of a decoupled MERN Stack app that includes JWT Authentication.
When combined with the front end found here, you'll have all you need to build a full stack MERN app!
Use this to go build things! 🚀
Replace <name-of-your-app-here> in the commands below with the name of your app!
git clone https://github.com/SEI-Remote/decoupled-mern-jwt-auth-template-back-end <name-of-your-app-here>-back-end
cd <name-of-your-app-here>-back-endOnce you are in the project directory:
rm -rf .gitHere's what your command line output should like after this step (note that the indicator that we are in a git repository is gone!)
Re-initialize a git repository:
git initUse the GitHub CLI to create a new project repository on GitHub:
gh repo create <name-of-your-app-here>-back-endRun npm i to fetch the template's dependencies:
npm itouch a .env file:
touch .envFill it with the following:
DATABASE_URL=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Replace the DATABASE_URL and SECRET with values that you provide.
🚨 Place secrets in this
.envfile. The contents of this file WILL NOT be exposed to site visitors.
Delete this README.md, then make an initial commit:
git add .
git commit -m "initial commit"
git push -u origin mainYou're done!
