/mern-boilerplate

Primary LanguageJavaScriptMIT LicenseMIT

Setup

  1. Clone the repo
  2. Rename the folder to your Project, you can use the mv command like mv mern-boilerplate yourprojectname
  3. Delete the .git file, when you are in the root of the file, you can press ls and you should see a .git file, then go ahead and run rm -rf .git

Setup your git repo

  1. go to github and create your github and create a repo (Without a readme or liscense you can add that later!)
  2. Then follow the directions on github that says …or create a new repository on the command line

it should look like this

git init
git add .
git commit -m "first commit"
git remote add origin git@git.generalassemb.ly:SEI-CC/test.git // this will be whatever your address will be
git push -u origin master

Setup the App

npm install

DOTENV

touch .env

add your variables

DATABASE_URL=mongodb://localhost:27017/testagramV2
BUCKET_NAME=catcollectorone
SECRET=mysecretforjwt

The app is configured, to use those respective key names for the database, jwt secret and aws bucket, of course you'll have your own values