✔️ Submit information to your site for anyone to see
✔️ Come back to your site later and see what I posted is still there
❌ Be the only person allowed to delete my stuff
✔️ Forms for users to sign up and log in
✔️ A form for users to submit data only accessible to logged in users
✔️ A page showing all the data
✔️ Semantic form elements with correctly associated labels
✔️ A Postgres database hosted on Heroku
✔️ Hidden environment variables (i.e. not on GitHub)
git clone
the reponpm install
to install the necessary node packages.- Create a
.env
file in the root folder following the example of.env.sample
.- To get
API_KEY
, make an account on unsplash and generate your own client key. - COOKIE_SECRET should be a random long string.
- DATABASE_URL should point to your local database and be in the form
postgres://<user>:<password>@localhost:<PORT>/<database_name>
- To get
npm run dev
to run the server- visit
localhost:3000