Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect UI templates to API backend #49

Merged
merged 10 commits into from
May 28, 2019

Conversation

chidimo
Copy link
Owner

@chidimo chidimo commented May 28, 2019

What does this PR do?

Connect authentication forms to API backend

Description of Task to be completed?

  • Connect sign up form with backend API
  • Connect sign in form to backend API
  • Connect profile edit form to backend API
  • Power user dashboard with backend API data
  • Let users get a link to verify their email address

How should this be manually tested?

Backend test
  1. Clone the repo
  2. cd into the root folder on a cmd shell and run yarn install. PowerShell is fine also.
  3. Setup a PostgreSQL DB.
  4. Define a .env file in the root of the project and supply values for the following parameters
    JWT_SECRET=<json-web-token-secret>
    DBNAME=<database-name>
    PGPASSWORD=<postgres-db-password>
    PGHOST=<postgres-db-host>
    PGUSER=<postgres-db-user>
    PGPORT=<postgres-db-port>
  5. Create a PostgreSQL database called testdb.
  6. Run command yarn test
Frontend test
  1. Clone the repo
  2. Open /UI/authentication.html in a browser
  3. Click the sign in or sign up tab.
  4. Enter the required credentials. You should be redirected to your dashboard, which will have up to date information coming from the api backend server.

Any background context you want to provide?

Nil

What are the relevant pivotal tracker stories?

166187100
166278056
166278087
166278113
166278071

Screenshots (if appropriate)

Quick Credit _ Dashboard - Mozilla Firefox 5_28_2019 4_39_48 AM

Questions:

Nil

chidimo added 10 commits May 28, 2019 04:17
- On signup, save the returned user object in localStorage
- Use the saved user to render dashboard pages

[Delivers #166278071]
- On the user's dashboard, they can click a button to get a link
in their mailbox with which to confirm their account
- If the account is already confirmed, this link is hidden

[Delivers #166278087]
- filter loans based on userid field
- filter loans based on userid field
- Get the loans from the API backend and append each to the loans table

[Delivers #165839920]
@chidimo chidimo changed the title Ch connect signup form 166187100 Connect UI templates to API backend May 28, 2019
@chidimo chidimo merged commit fbc5bef into develop May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant