Skip to content

Commit

Permalink
chore(UI): change base URL of UI javascript files
Browse files Browse the repository at this point in the history
  • Loading branch information
chidimo committed May 24, 2019
1 parent 62b6310 commit 5a5ee3e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ income earners.

## Demo

<https://qcredit.herokuapp.com/>
<https://qcredit.herokuapp.com/api/v1/>

## Installation

Expand Down
4 changes: 2 additions & 2 deletions UI/js/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ activate_signup.addEventListener('click', e => {
});


// const base_url = 'https://qcredit.herokuapp.com';
const base_url = 'http://localhost:3000';
const base_url = 'https://qcredit.herokuapp.com/api/v1';
// const base_url = 'http://localhost:3000';
const signupEndpoint = `${base_url}/auth/signup`;
const signinEndpoint = `${base_url}/auth/signin`;

Expand Down
2 changes: 1 addition & 1 deletion UI/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const id = 1;
const bucket = 'quick-credit';
const folder = 'profile_photos';
const endpoint = 's3.eu-west-2.amazonaws.com';
const base_url = 'https://qcredit.herokuapp.com';
const base_url = 'https://qcredit.herokuapp.com/api/v1';
// const base_url = 'http://localhost:3000';

// const reload_pix = () => {
Expand Down
3 changes: 3 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ VALUES ('a@b.com', '$2b$08$PyyTo.r0nPso8DHA0HfTs.lZSaGNA6J23V4eiw06rN8iWJin24f3O
CREATE TABLE IF NOT EXISTS loans (
id SERIAL PRIMARY KEY,
userid INT NOT NULL,
useremail VARCHAR NULL,
createdon TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
status VARCHAR DEFAULT 'pending',
repaid BOOLEAN DEFAULT false,
Expand Down Expand Up @@ -196,6 +197,8 @@ heroku pg:credentials:url DATABASE
psql -h ec2-54-83-36-37.compute-1.amazonaws.com -U fgpyagsuzwxcnb -d dfjtmn74eqgvn7
psql -h *** -U **** -d ***
copy and past password, then enter
```

0 comments on commit 5a5ee3e

Please sign in to comment.