tysg / petpets Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://petpets.herokuapp.com/
Home Page: https://petpets.herokuapp.com/
Steps to reproduce:
Expected Behaviour: calls api with user email
Actual behaviour: calls api with undefined
My guess is the user
in api.ts
won't call the getUser()
again, unless upon page refresh.
โ ~ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
cs2102_app dev e3c59a8fb994 About a minute ago 301MB
cs2102_app prod 508a3e9dddf0 7 minutes ago 613MB
<none> <none> 79fde778cc09 12 minutes ago 301MB
<none> <none> 1b42cd7fbf8e 14 minutes ago 301MB
<none> <none> a6d2eb30ea6f 17 minutes ago 251MB
Currently need to periodically run docker image prune
to remove these images and free up spaces. Need a better way to remove these images.
CI pipeline should recreate all tables and reseed the database, upon creating new review apps or staging deployments.
Allow new user to register as pet owner and add pets
Does the ER diagram directly translates to the table?
id
field
paid for
relationship connected to credit card, transaction, bid; or,credit card
+ transaction
, and connected to bid
Backend: expose endpoint GET /api/logout
that clears req.user.session
frontend: axios get req to '/api/logout', redirecting to landing page '/' on success
For a change in pet Category, update all pets that are in that category
https://github.com/thisisadiyoga/cs2102_ay1819_s2
The Prof provided an example project with working business logic. It's written in JS, we need to port some code over to our TypeScript express repository.
As per project requirements, there needs to be at least 1000 users.
As a pet owner, I would like to be able to search for pet sitters that are specialized for each of my pets
Backend:
Given a selected pet (email, petname pair)
Enforce stricter validation on price field.
sample implementation
Updating pet category creates new pet category
PCS Administrator must be able to update the base daily price for each pet type
Show empty page for CareTaker if user is not a careTaker.
pet
and pet_category
tables as per the ER diagrampet_category
table?
Implementation detail to manag Pet Owner and Care Taker relationship in sign up flow and database representation.
Overall UI design?
CRUD for:
TBC
After backend is complete,
set up corresponding token verifiers for route groups
POST api/signin
should return:
username,
email,
bearer token,
user role (pet owner, care taker, admin)
These information is then persisted in the client's localStorage. The bearer token will be attached to the header of every subsequent request from the client to the server. This will help server to detect if the logged-in user has the permission to perform the requests.
The client will also use the user role
field to determine which pages are shown to the user.
Display cards of Pets.
Check that a bid can only be made for a caretaker based on these criteria
This is where DB query gets interesting; can fulfill the interesting query criteria. We can probably display
A form for pet owners to initiate new Requests. Needs #34
SignUpRequest
definition to include address, phone, etcWe need a user interface for logged-in users. It can have a tabbed structure, so that each tab is a standalone Component, then we have split the work better.
It could look something like this: https://ant.design/components/layout/#components-layout-demo-top-side-2
credit_card
table as per the ER diagramapi/payment/credit_cards
CRUD endpoint,
/profile/payment
page that handles CRUD operations that, ideally:
BCrypt hashsync is an expensive operation, which is not neccessary if seed settings are not modified.
Find a way to cache this.
After encountering an error, frontend is unable to connect to the backend again.
Debugger shows:
Paused on Exception:
TypeError: i.default.detectStore(...) is undefined
Webpage will not be functional as script is paused by debugger.
Resuming then refreshing the page will not resolve the error.
Upcoming
Only return caretakers that fit these additional criteria
Suggested to add a new query and subtract these caretakers from those returned by search_caretaker.
@dingyuchen suggested that it would be nice to have a live preview deployed for every PR. This can be achieve by https://devcenter.heroku.com/articles/github-integration-review-apps#review-apps-and-docker
In the Past Orders page for pet owners, display a list of upcoming orders with the current status, and buttons for the next step.
Current status is one of confirmed
, paid
, reviewed
. The corresponding next step for the statuses are Pay
(by credit card), Review
.
Should essentially be another update endpoint similar to setting bid status, but now we update these values
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.