Deployed on Heroku here: http://fac24-week4-project.herokuapp.com/
- Open a terminal on your computer.
cd
to the folder where you like to keep projects.git clone [URL of our GitHub repo]
cd
into the folder that git just made for you.npm install
- Check if there are working scripts to create the local testing database and
.env
file.- (They might be in the
/scripts
folder, often/scripts/create_db
and/scripts/populate_db
.) - If they're there and they work, run them :)
- (They might be in the
- If there are no working scripts, you'll need to create your own local testing database and
.env
file manually:- (DATABASE_URL='[your local testing db details]')
- You'll also need a
COOKIE_SECRET='...'
line in your.env
file. - When you're ready to run your local dev server,
npm run dev
(or whatever the group decided the script should be called inpackage.json
) - When you're ready to test with Cypress, run
npm test
.