GithubHelp home page GithubHelp logo

barista-fullstack's People

Contributors

charlesdefarias avatar kareemjwallssanders avatar micahellastc avatar priscillapalacin avatar raey-abera avatar sabirlume avatar

Watchers

 avatar

barista-fullstack's Issues

cashier.ejs

CSS
order as checkboxes
name input
submit button placed below
make it pretty

index.ejs:

HTML layout content [form with order and name input, submit event]

API:

index.ejs - post that uses req body to submit form data. db.collection('orders').save({ }), save document to order collection, render / page again

owner.ejs - app.get -> db.collection('orders').find().toArray() -> res.render('profile.ejs'; ARRAY)
ejs has two for loops. 1 for complete = false, 1 for complete = true
app.put-> triggered by event listener of complete order click -> fetch db.collection('orders').findOneAndUpdate({name: req.body.name, orderItem: req.body.orderItem}) change completed property from false to true and add the barista's name, using the logged in user information

DB:

add database link and database name to databse config file

barista.ejs

HTML layout content
form with order and name input
submit event

page where baristas can see ongoing orders and completed orders and also where they'll be announcing the name of the person on the order

DB:

database: orders collection, each document has the following properties: customerName, orderItem, baristaName (name of barista that marks order complete), completed (true or false to say if order's been done)

cashier.ejs

configure database with correct uri & templates

Main.js

main.js [click events, reload window for new order]

routes.js

set up cashier.ejs, barista.ejs and login routes, having login/signup on the same page

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.