Skip to content
 
 

Latest commit

 

History

233 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Stack with OAuth Template

This is a MERN Stack template that includes JWT Authentication.

Use this to go build things! 🚀

To Use This Template

Replace <name-of-your-app-here> in the commands below with the name of your app!

git clone https://github.com/SEI-Remote/mern-stack-jwt-auth-template <name-of-your-app-here>
cd <name-of-your-app-here>

Once you are in the project directory:

rm -rf .git

Here's what your command line output should like after this step (note that the indicator that we are in a git repository is gone!)

The command line before and after running the rm -rf .git command. Before git:(main) is visible indiating that the directory contains a git repository, after the command it is not.

Re-initialize a git repository:

git init

Use the GitHub CLI to create a new project repository on GitHub:

gh repo create <name-of-your-app-here> --public --confirm

Run npm i to fetch the template's dependencies:

npm i

Then, make an initial commit:

git add .
git commit -m "initial commit"
git push -u origin main

touch a .env file:

touch .env

Fill it with the following:

DATABASE_URL=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Replace the DATABASE_URL and SECRET with values that you provide.

Delete this README.md

You're done!

About

Discover pathways to learning new skills

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages