sandhya123r / cmpe281-team-project Goto Github PK
View Code? Open in Web Editor NEWA public repository for CMPE 281 Team Project
A public repository for CMPE 281 Team Project
Interfacing front end login to REST API backend
Designing Products.ejs with add quantities and add to cart button that connects with backend.
Porting and deploying front-end login/sign-up from localhost to aws.
Send user details like Username and password in JSON format to backend to save.
Add features like :-
-adding items to cart, removing items
-persistance of the data
Whenever we make a change on eclipse in our dev environment, we should be able to easily deploy the same on AWS.
Front end login form
Mainly
As of now we only see that the cart object from the backend is saved at redis. Key structure :-
KEY : { email: 'sandhya@gmail',
name: 'Sandhya R',
address: 'sandhya address',
phone: 'sandhya phone',
creditCard: 'sandya cc',
cart: { cartId: 'ee0ef43b-35d7-4aa0-bd25-62fd0ac70ff3', items: {} } }
Handling add/remove cart items from frontend is propagated to backend while the redis session needs to be updated too
Adding REST commands to interface customer,cart and the product objects.
Redirect Users to Products.ejs if Login is successful
Code snippets to handle get,post request and transmit from frontend to backend
Setup redis to fetch data from query db and store the session data in redis
Need to setup mysql server, and modify functions in controllers to write to it
Booting up a Spring server on eclipse
Demo Spec for classes,objects in :-
1)Controller
2)Controller to DB connection
Write a Spring based server exposing the REST API calls to frontend
Use mongodb to maintain product catalog and product details
As we were not able to render product images in runtime, we used ejs for nodejs templates.
Designed SignUp page. Registered users can login to the website to see products page
Used Passport framework to authenticate users.
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.