Giter VIP home page Giter VIP logo

cobuy's Introduction

cobuy

๐ŸŒฑ ๐Ÿ“ฆ ๐Ÿฒ ๐Ÿ‘ช Helping people buy good food at good prices, together.

Kanban

Table of Contents

Setup

Before we start, please install node@8 and npm@5.

git clone [email protected]:root-systems/cobuy
cd cobuy
npm run burnthemall # TODO npm install
# see 'How to get private development config' section below
npm run db migrate:latest
npm run dev

System Dependencies

Stack

dogstack! ๐Ÿถ ๐Ÿถ ๐Ÿถ

Folder Structure

We're following the dogstack folder structure convention.

Entry files:

  • stories.js

Topics:

  • app

Types:

  • containers
  • components
  • helpers

Available Scripts

npm start

Starts production server

npm start

npm run dev

Starts development server

npm run dev

npm run storybook

Starts storybook server

npm run storybook

npm test

Runs ava tests

Can optionally take a glob

npm test -- './todos/**/*.test.js'

Default glob is ./**/*.test.js ignoring node_modules

npm run lint

Checks for standard style

Can optionally take a glob

npm run lint -- './todos/**/*.js'

default glob is ./**/*.js ignoring node_modules

npm run db

Runs knex command, with any arguments.

npm run db migrate:latest
npm run db seed:run

Developer Notes

Anything that a developer working on Cobuy should know about.

TODO organize all the miscy mushy magic

How to get private development config

Our development config is stored in a private repository:

cd ../
git clone [email protected]:Enspiral-Pods-Swarm/cobuy-config
cp cobuy-config/*.js cobuy/config

After deploy: migrate on heroku!

heroku run npm run db migrate:latest --app=cobuy

How to storybook

So you want to tell a story about dumb React components, ey?

Start storybook with npm run storybook

The configuration for storybook lives in .storybook/.

The stories are in ${topic}/stories/index.js. The dumb components are in ${topic}/components/${name}.js

If you add a "story", please add your topic story to .storybook/config.js

Check out app/stories/index.js for example stories, which you can copy into a new topic.

NOTE: At the moment, hot-reload does not work when changing messages in app/locales/*.json.

Numbers

All numbers should be represented as strings and manipulated with bigmath.

Spelling in the code

Developers should be using British spelling in the codebase

License

AGPL-3.0

Emoji artwork is provided by EmojiOne and is licensed under CC-BY 4.0

cobuy's People

Contributors

gregorykan avatar ahdinosaur avatar

Stargazers

 avatar

Watchers

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