micahellastc / barista-fullstack Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
CSS
order as checkboxes
name input
submit button placed below
make it pretty
HTML layout content [form with order and name input, submit event]
sign up and login in one page
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
add database link and database name to databse config file
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
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)
configure database with correct uri & templates
main.js [click events, reload window for new order]
database setup with correct templates
set up cashier.ejs, barista.ejs and login routes, having login/signup on the same page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.