Coder Social home page Coder Social logo

luke-yamasaki / mealize Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 18.18 MB

Mealize is a React and Flask app that aims to reduce food scarcity and waste by connecting businesses to nonprofits.

Home Page: https://mealize.herokuapp.com/

Dockerfile 0.18% Shell 0.10% HTML 0.36% CSS 10.55% JavaScript 0.15% Python 88.36% Mako 0.30%
flask food food-delivery food-waste reactjs styled-components ui-design ux-research adobe-illustrator adobe-xd

mealize's Introduction

 

Mealize is a React and Flask app that aims to reduce food scarcity and waste by connecting businesses to nonprofits.

home

Link to Live Site

https://mealize.herokuapp.com

Getting Started

  1. Clone this repository

    git clone [email protected]:Luke-Yamasaki/Mealize.git
  2. Install dependencies

    pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt
  3. Create a .env file based on the .env.example file with credentials of your choice. I recommend creating a UUID for secrets. If you do not know how to do so, here are the commands in JavaScript:

    const crypto = require('crypto')

    console.log(crypto.randomUUID({disableEntropyCache : true}));

    The images you see in the homepage were seeded from my S3 bucket. However, you will need to create your own AWS account, create a bucket and acquire credentials if you want to allow users to upload local files. There is a storage limit that builds up fast, so please be careful of data usage.

    If you are unfamiliar with AWS, here is an excellent walkthrough courtesy of James Robertson: AWS walkthrough.

  4. Create a PostgreSQL user, password and database to match your chosen credentials in the .env file.

    If you forgot commands, type 'psql' in your terminal to open up the PostgreSQL interface.

    Next, enter CREATE USER (your chosen username) WITH PASSWORD 'your password.' CREATEDB login;

    Then, type CREATE DATABASE (your chosen database name) WITH OWNER (the username from above);

  5. Enter your shell environment, upgrade and seed your database, and run your flask app

    pipenv shell
    flask db upgrade
    flask seed all
    flask run
  6. To run the React App, go inside the react-app directory, npm install and npm start. This should open your browser automatically but if not, you may navigate to localhost:3000 to access the application.



Technologies


                     


Features

- Light mode, dark mode and background customization

dark mode

- Post a request as a nonprofit manager.

request

- Post surplus food as a business manager.

item

- Add posts to favorites list.

favorites

- Notify managers about good items you find.

notify

- Send pick up request to business owners (limited to nonprofit managers).

requestForm

- Accept or decline pick up requests (limited to business managers).

validate

- Check pending and accepted deliveries.

pending

- Filter by category and search items by keywords!

filter search

mealize's People

Contributors

luke-yamasaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.