Giter Site home page Giter Site logo

scheiber / saucesource Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.18 MB

Add some fuel to your fire with SauceSource, a web app that allows a user to learn about and curate different types of hot sauces.

Home Page: https://saucesource.scheiber.dev

HTML 4.00% CSS 17.60% JavaScript 76.42% Dockerfile 1.99%
css flydotio html javascript netlify postgresql react reactjs

saucesource's Introduction

SauceSource

Sauce Source

Table of Contents

About

Looking to spice up your life? SauceSource is a web app that allows you to learn about and curate different kinds of hot sauces. The app functions as a reference guide as well as a discovery tool. Users can navigate the site to see a selection of different sauces, complete with images of their bottles, their rating on the Scoville Scale, the origins of the sauce, what foods they pair best with, and if the sauce is organic or kosher. Add some fuel to your fire with SauceSource.

Features

  • Clean and easily-navigable user experience is designed to be fully responsive.
  • Looks and works great on both desktop and mobile platforms.
  • Ability to add, edit, see information about, and delete sauces.
  • Asks to confirm deletion of any sauce, to prevent unintentional user action and data loss.
  • "Sticky" navigation bar is always present on screen as user scrolls the page.
  • Assigns each sauce a "flame score" from 1 to 5 that is calculated based on the sauce's Scoville Heat Unit (SHU) rating.
  • Formats and displays Scoville ratings correctly using Intl.NumberFormat.
  • Uses react-helmet-async to dynamically change page titles based on current route.
  • Uses react-icons for custom button icons.
  • Uses react-promise-tracker and react-loader-spinner to display a loading indicator during fetch calls.
  • Uses react-scroll-up-button to display a button that scrolls to the top of the list of sauces when clicked.
  • Links to buy sauces from external websites on each sauce page.
  • Customized favicon.
  • Customized font.
  • Customized error page.
  • "About" page with details of project and credits.

Technical Details

  • This project was created using a React-based front-end, an Express-based back-end, and a PostgreSQL database.
  • The front-end is hosted on Netlify and the back-end is hosted on Fly.io.
  • Sauce data is stored in the back-end database.
  • This project went from conception to completion in two weeks and was created while fully remote through the Pursuit fellowship.

Links

Local Setup

First, clone this repository to your local machine.

git clone [email protected]:Scheiber/saucesource.git

It is recommended to use two separate terminal instances so that the front-end and back-end can run concurrently.

Front-end Setup

Prerequisites are Git and Node.js.

First, navigate to the front-end directory.

cd saucesource/front-end

Next, create a .env file to allow the front-end to access the back-end locally.

echo "REACT_APP_API_URL=http://localhost:3333" >> .env

Next, install the required node modules.

npm i

Finally, start the server.

npm start

Back-end Setup

Prerequisites are Git, Node.js, and Postgres.

First, navigate to the back-end directory.

cd saucesource/back-end

Next, create a .env file to access the database locally.

echo "PORT=3333\nPG_HOST=localhost\nPG_PORT=5432\nPG_DATABASE=saucesource" >> .env

Next, install the required node modules.

npm i && npm i -g nodemon

Next, initialize and seed the database.

npm run db:init && npm run db:seed

Finally, start the server.

nodemon server.js

Acknowledgments

Much gratitude goes towards the testers and reviewers of this project, including my instructors Myra Smith, Gary Kertis, and Tristan Angieri, as well as my colleagues Jossy Pascasio for design consulting, and Pratima Roy for user experience review.

Screenshots

Home Page All Sauces (Index) Page Add Sauce (Create) Page Sauce Info (Read) Page Edit Sauce (Update) Page About Page

saucesource's People

Contributors

scheiber avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.