Skip to content

fac27/wingspan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5ec4865 · Jun 22, 2023
Jun 19, 2023
Jun 22, 2023
Jun 22, 2023
Jun 20, 2023
Jun 21, 2023
Jun 22, 2023
Jun 21, 2023
Jun 21, 2023
Jun 21, 2023
Jun 21, 2023
Jun 19, 2023
Jun 20, 2023
Jun 22, 2023
Jun 20, 2023
Jun 20, 2023
Jun 19, 2023
Jun 21, 2023
Jun 21, 2023
Jun 22, 2023

Repository files navigation

Wingspan

About

This is the week 5 project of the FAC software developer apprenticeship. A Nextjs full-stack application for collecting birds inspired by the game wingspan.

Installation

  1. Clone the repo

git clone https://github.com/fac27/wingspan

  1. Cd into the repo

cd wingspan

  1. Install npm packages

npm install --force

  1. Seed the database

node database/seed.js

  1. Run the development server

npm run dev

  1. Navigate to http://localhost:3000/ in the browser

User Stories

As a user, I want to...

  • land on a page with images of birds (name, image) so that I can get an idea of what birds are on offer
  • filter the original view of the birds so I can narrow my decision making (filter by habitat)
  • select a bird to view more data so that I can get more information about the birds
  • select a quantity of birds so that I can add them to my birdcage

Design

Wireframes were created using figma and can be found HERE.

Screenshot 2023-06-21 at 14 14 31

Database Schema

db_diagram

Known issues

  • Deployment This is because Next.js's Vercel doesn't play nice with sqlite (a requirement of the project)

Testing

E2E tests were created with Cypress

To run the tests:

Make sure development server is running npm run dev Run the tests in the terminal npx cypress run

Alternatively: Make sure development server is running npm run dev Open cypress application npx cypress open Select E2E Testing in the application Select chrome as your browser Select the spec you wish to run