Coder Social home page Coder Social logo

samharden / ejc2021-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from colarusso/ejc2021-sample

0.0 1.0 0.0 2.11 MB

A sample implementation of Spot for folks to fork and play with while attending the ABA's 2021 Equal Justice Conference.

CSS 13.98% HTML 38.95% JavaScript 47.07%

ejc2021-sample's Introduction

EJC2021 Sample Site

This repo houses a sample implementation of Spot for folks to fork and play with while atteding the ABA's 2021 Equal Justice Conference. To create your own copy and customize it for your needs, complete the following steps.

Create a GitHub Account and Login

If you don't already have a GitHub account, you can create one here. After you have an account, make sure you are logged in and viewing this page.

Fork This Repo

Click on the Fork button at the top of this page and follow the instructions.

fork this

Turn on Github Pages

After you finishing forking (copying) this repo, vist the repo. Instead of colarusso/EJC2021-sample you will see [your username]/EJC2021-sample. That's how you know you're looking at your own copy. Also, you won't see the your site is published at... message.

  1. Click on Settings in the menu at the top of the page.
  2. Click on Pagesin the menu on the side of the page.
  3. Choose main from the dropdown under Source.
  4. Clikc Save.

After a minute or two you should be able to visit your own webage at something like https://colarusso.github.io/EJC2021-sample/, again with colarusso replaced by your username.

GitHub Pages Options

Create a Spot Account

If you don't already have a Spot account, you can create one here. Once you login, navigate to the Token & Docs page and copy your token into your clipboard.

Edit Spot.js file

Now we're going to edit the copy of js_bin/Spot.js found in your repo. Be sure you're working with your copy! You'll know you are because your username will be in the URL. We're going to focus on the first four lines. That is:

var man_jur = "LA";
var appBase = "https://afterpattern.com/marketplaces/ejc-legal-apps?nsmi_codes[]=";
var appCodes = ["CO-00-00-00-00","CO-01-00-00-00","FA-00-00-00-00","FA-04-00-00-00","HO-00-00-00-00","HO-02-00-00-00","HO-05-00-00-00","HO-06-00-00-00"];
var bearer = "8c93ab722ab46104cdd6e94b0d777760a6ab18a4d6cab9a8afd1581e91946a64";
  1. Paste your Spot token into the bearer variablem replacing the existing token and leaving the quotation marks.
  2. Replace man_jur with the abbreivation for your jurisdiction (e.g., TX for Texas).
  3. Replace appBase with the URL for your Afterpattern marketplace. Be sure to keep the ?nsmi_codes[]= paramter. Also, if you don't have an Afterpattern marketplace, don't worry, you can come back and edit that later. Or you can follow these instructions for setting up a marketplace.
  4. Edit the list of NSMI/LIST codes found in appCodes. These are the codes for which your marketplace has apps. So if you have both Family and Housing apps, you would edit your list to look like this ["FA-00-00-00-00","HO-00-00-00-00"]. If you have more granular apps, you can include those codes too (e.g., FA-01-00-00-00).

Edit index.html

If you want to change the look of your pagge, edit your copy of index.html.

ejc2021-sample's People

Contributors

colarusso avatar tomaofficer avatar samharden avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.