Skip to content

fac26/week3-authentification-dgkg

Repository files navigation

Authentification | Team 1

Deployed website: here.

Criteria

  • As a user, I want to: submit information to your site for anyone to see
  • As a user, I want to: come back to your site later and see what I posted is still there
  • As a user, I want to: be the only person allowed to delete my stuff
  • Forms for users to sign-up and sign-in
  • Form to submit data only accessible to logged in users
  • Page showing all the data
  • Way for logged in users to delete their own data
  • Semantic HTML
  • Database
  • Hidden env variables
  • Tests for all routes
  • User page showing all posts from single user
  • Github action to run tests on push

Contributors:

Gal, Georgia, Karol, Dominic

Repo Structure

image


About

The project is a little community forum about bikes. Users should be able to sign up and log in to create and delete their own posts. Non-logged in users should still be able to see other people's posts on the same page.


Setup

Make sure you have Git and Node (v18) installed.

  1. Clone this repo and cd into the directory
  2. Run npm install to install all the dependencies
  3. Run npm run dev to start the server.

Tests

With above installed, follow the below to run test(s).

  1. Run npm run test:1 to test

Session can be created and inserted