daisygabi / BuyLocalFrontend

Buy Local frontend project. Covid-19 Hackaton from Twilio.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BuyLocal Food web application

This project is part of #TwilioHackathon April 2020

  1. Project Structure:

    • components

      - common    : About.js, Footer.js, Hearder.js
      
      - dashboard : Main.js, MainPage.js
      
      - products: components related to products
      
      - vendors: components related to vendors accepting or denying the orders
      
    • NotFound.js: renders when the path from router doesn't match anything we expect to

    • Page.js: a "higher order"/parent component for all the other components except NotFound.js Here you can declare the strucutre of any page and create functions that are needed by all. Pass them down to child components using props.

    • Router.js: declare URL paths and associated components

    • img: images used in the application

    • config: i18n.js, options.js: configuration for internationalization. Goes hand in hand with folder /locales where all the translations are described

    • locales: home for all translations. Add here more languages or delete some

    • styles: a) index.css: imported all tailwind dependencies b) tailwind.css: generated taiwind css

    • index.js: entry point of the application

    • tailwind.js: here you can keep/add/delete whatever you want to customise the entire application. Read more here: https://tailwindcss.com/docs/container

    • postcss.config.js: Tailwind is added to the project as a Postcss plugin. This and autoprefixer are added to this config file

  2. To build the project locally, run:

Yarn

  • yarn install
  1. Requirements:
  • Node.js
  • A Twilio account

3.1 Twilio Account Settings

  • Account Sid: Your primary Twilio account identifier - find this in the Console.
  • Auth Token: Used to authenticate - just like the above, you'll find this here.
  • Phone number: A Twilio phone number

After the above requirements have been met:

  1. Local development

That's it for the frontend side of the project.

LICENCE: MIT

Disclaimer No warranty expressed or implied. Software is as is.

About

Buy Local frontend project. Covid-19 Hackaton from Twilio.

https://buyfoodlocallyfrontend.herokuapp.com/

License:MIT License


Languages

Language:CSS 90.7%Language:JavaScript 9.1%Language:HTML 0.3%