GithubHelp home page GithubHelp logo

codys-cafe-start's Introduction

Cody's Cafe

Hi! My name is Cody! Can you help me build my cafe?!?

codys-cafe

Getting Started

First thing's first!

  • Fork and clone this repo!
  • npm install
  • npm test
  • createdb codys_cafe (or if you don't the createdb utility, simply create a database called codys_cafe via your preferred means)

This runs all the specs you need to build out my cafe api! They of course run with mocha and chai!

I can't wait! This is going to be spec-tacular! Let's get started!

Code

We're building out the cafe's backend! Here's what I have planned:

  • There will be a Coffee model, representing a coffee database table (with all my pup-ular coffee drinks!)

    • This will go in server/models/coffee.model.js
    • The specs are in test/coffee.model.test.js
  • There will be a Pug model, representing a pugs database table (containing all my pug friends!)

    • This will go in server/models/pug.model.js, and you can set associations in models/index.js
    • The specs are in test/pug.model.test.js
  • We'll serve up the coffee resource via /api/coffee!

    • This will go in server/routes/coffee.router.js
    • The specs are in test/coffee.routes.test.js
  • We'll serve up the pugs resource via /api/pugs!

    • This will go in server/routes/pug.router.js
    • The specs are in test/pug.routes.test.js
  • Finally, we'll need some utility functions to do some work for us around the cafe. Funky functions!

    • These will go in server/funky-funcs/index.js
    • The specs are in test/funky-funcs.test.js

You should only need to work out of those files listed above! The Pug model is somewhat dependent on the Coffee model, and the /api/pugs routes are somewhat dependent on the Pug model. So I recommend working on them in the order listed above. The funky funcs can be done independently of the routes/models though! That's why they're so funky!

codys-cafe-start's People

Contributors

joker-jonesy 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.