The ldsconnect.org API is completely decoupled from the static assets.
This repository is provided so that you can comfortably develop the UI against the real API without any worry of the backend.
LDSConnect.org allows API access to the test domain https://local.ldsconnect.org:8043
so that you can run a copy of it locally without needing to install a local server.
- Install
curl -fsSL https://bit.ly/install-ldsconnect-frontend-min | bash
- In a new terminal, start the server
pushd ldsconnect-static-backend
node ./serve.js
- In a new terminal, watch jade files
pushd ldsconnect-static-backend
jade -w ./public/views/*.jade
localhost
and 127.0.0.1
are not valid domains.
Use https://local.ldsconnect.org:8043.
IMPORTANT: Because LDS Connect v2 is being staged at https://lds.io which does not have a valid SSL certificate, you must visit https://lds.io and ACCEPT THE CERTIFICATE
AGAIN: If you do not accept the certificate for https://lds.io in your BROWSER, the API will fail to work.
- Develop in frontend/app
You can fork this repository and then submit pull requests after updating your local copy:
git remote rename origin upstream
git remote add origin https://github.com/${YOUR_USER_NAME}/ldsconnect.org-frontend.git
Do not commit .html
files (with the exception of index.html
and oauth2-close.html
.
echo "Cloning Frontend-Developer Backend (very minimal)..."
git clone https://github.com/LDSorg/backend-oauth2-node-passport-example.git \
ldsconnect-static-backend \
> /dev/null
pushd ldsconnect-static-backend
echo "Installing NPMs (this will take several seconds, maybe a minute)..."
npm install --loglevel silent
echo "Cloning Developer HTTPS Certificates..."
git clone https://github.com/LDSorg/local.ldsconnect.org-certificates.git \
./certs \
> /dev/null
tree -I .git ./certs
echo "Cloning the Frontend and Creating ./public link"
git clone https://github.com/LDSorg/ldsconnect.org-frontend.git \
./frontend \
> /dev/null
ln -s 'frontend/app' ./public
echo "Installing NPMs (this will take several seconds, maybe a minute)..."
pushd frontend
bower install --silent > /dev/null
jade app/views/*.jade
ldsconnect-static-backend/
├── package.json
├── serve.js
├── app.js
├── certs
│ ├── ca
│ │ ├── intermediate.crt.pem
│ │ └── root.crt.pem
│ └── server
│ ├── my-server.crt.pem
│ └── my-server.key.pem
├── public -> frontend/app
└── frontend
├── package.json
├── bower.json
├── install-min.bash
└── app
├── 404.html
├── bower_components
├── favicon.ico
├── fonts
├── images
├── index.html
├── oauth2-close.html
├── robots.txt
├── scripts
│ ├── app-churchly.js
│ ├── client-config.js
│ ├── controllers
│ │ ├── account.js
│ │ ├── lds-account.js
│ │ ├── login-v2.js
│ │ ├── nav.js
│ │ ├── oauth.js
│ │ ├── oauthclients.js
│ │ └── verify-contact-details.js
│ └── services
│ ├── lds-account.js
│ ├── st-account.js
│ ├── st-api.js
│ ├── st-login.js
│ ├── st-oauth-providers.js
│ ├── st-oauthclients.js
│ └── st-session.js
├── styles
│ ├── bootstrap.cerulean.min.css
│ ├── bootstrap-social.min.css
│ ├── font-awesome.min.css
│ └── style.less
└── views
├── account.jade
├── lds-account.jade
├── login-v2.jade
├── nav.jade
├── oauth.jade
├── oauthclients.jade
└── verify-contact-details.jade