Skip to content

Add your favourite recipes with B-JAM. Built with Node and Express ๐Ÿš€

Notifications You must be signed in to change notification settings

fac22/week4-ABJM

Repository files navigation

B-JAM recipe board ๐Ÿœ

Add your favourite recipes with B-JAM ๐Ÿฝ

Deployed version here

Instructions for how to run locally

  1. Clone the repo
  2. cd into the folder and run NPM install
  3. Run the scripts > create_db and populate_db to initialise the local copy of the database

Roles ๐Ÿ‘ฅ

UX - Ji

Facilitator - Anna

DevOps - Michael

QA - Barbara

Core User Stories ๐Ÿ“–

As a user ๐Ÿ™Žโ€โ™€๏ธ I want to...

  • Login to the app, update my details and delete my data
  • Post my recipes
  • Come back later and see that my recipes are still there
  • Delete my recipe
  • See everybody's recipes

Acceptance Criteria โœ…

โœ”๏ธ Express server ๐Ÿš€

โœ”๏ธ Postgres database

โœ”๏ธ Hosted on Heroku

โœ”๏ธ Using of the spike topics (file upload ๐Ÿ“‚ )

โœ”๏ธ Validated user-submitted data on the server

โœ”๏ธ Form validation in the browser

โœ”๏ธ Error handling informing the user of what went wrong ๐Ÿ˜ฎ

โœ”๏ธ CSS styling

โœ”๏ธ Acccessibility testing

โœ”๏ธ Cypress testing on most routes ๐ŸŒฒ

Future improvements ๐Ÿ•ฐ

  • Fix image avatar upload feature ๐Ÿ™

  • Tests ๐Ÿงช for all routes

  • GitHub Actions CI setup to run tests when we push

  • Future features:

    ๐Ÿ“ commenting on recipes

    ๐Ÿ“ 'like' buttons on recipes โค๏ธ

    ๐Ÿ“ image uploads on recipes

App User Flow

Diagram showing user flow through app

What we learnt ๐Ÿ“š

  • How to implement file uploads in Node.js with Multer
  • How to validate user input in the client and on the server ๐Ÿ‘
  • How to use Express middleware and how to write our own middleware functions to organise our code.

Bugs we ran into ๐Ÿ›

  • We had an issue with our avatar images not showing on the page. This was due to a syntax error in the SQL query.
  • We noticed that a user had to log in again after they signed-up to post a recipe. This was due to a missing return statement in the createUser function.

Screenshots ๐Ÿ‘€

About

Add your favourite recipes with B-JAM. Built with Node and Express ๐Ÿš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •