Giter VIP home page Giter VIP logo

frontend's Introduction

Food Oasis

Overview

This is the Food Oasis frontend application repository.

Usage

Setup & Requirements

Configuration

Commands

Script Description
npm start Spins up an Express server
npm run build Builds the application to ./dist.
npm run dev Used for local development. Builds and runs the application on webpack-dev-server.
npm run test Runs tests.
npm run test:watch Same as npm run test but watches for changes and re-runs tests.
npm run lint Runs ESLint on the all .js files in the ./src and ./tests folders.

Environment Variables

Project Structure

.
├── src                      # Main application folder
│   └── actions              # Action creators
│   └── components           # Functional components
│   └── containers           # Redux connect wrapped components
│   └── decorators           # Higher-order component decorators
│   └── layouts              # Layout components
│   └── reducers             # Reducers
│   └── styles               # Base and component styles
│   └── utils                # Helpers and constants
│   └── views                # Components for each route
│   └── index.html           # Index file where compiled JS and CSS is injected and served
│   └── index.js             # Entry point of application
├── static                   # Static files
├── tests                    # Integration and unit tests
├── webpack                  # Webpack configuration files
├── server.js                # Express server

Components vs. Views vs. Layouts

TL;DR: They're all components.

This distinction may not be important for you, but as an explanation: A Layout is something that describes an entire page structure, such as a fixed navigation, viewport, sidebar, and footer. Most applications will probably only have one layout, but keeping these components separate makes their intent clear. Views are components that live at routes, and are generally rendered within a Layout. What this ends up meaning is that, with this structure, nearly everything inside of Components ends up being a dumb component.

Webpack

Testing

Deployment

frontend's People

Watchers

Josh Robins 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.