Skip to content

A dynamic single page application with information on ADHD

License

Notifications You must be signed in to change notification settings

ROsmundson/adhd-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADHD Facts App

This application is single page, meaning only one HTML file, the text content viewable by the user, is used. CSS and Javascript are used for styling and DOM manipulation."

Getting Around

There are 5 separate event listeners, one used for page load notification and the others for navigation.

JSON Server

Data was collected and compiled from web sources into the attached db.json file. The application is programmed so the user can navigate from, and back to the home page, the facts page, and the about me page. When the user clicks on the "Read the Facts" button, a list of 10 facts about ADHD, fetched from the attached db.json file, are iterated through using javascript and then rendered to the facts page.

User Input

The user can share their input (feedback, story, etc.) by populating a simple form that captures their data, posts it to the db.json file and renders their new comment to the page. This data will persist to the local JSON Server and is now viewable by the current user and to future users.

Run the Application

To run this application:

  1. go to https://github.com/ROsmundson/adhd-spa

  2. locate and click the "code" button

  3. copy the SSH version of the provided link address.

  4. create and name a local directory ("mkdir name-of-file") in your computer's terminal, then clone the repo to that file:

    You now have access to the application files.

  5. To make the page interactive , go to your terminal, navigate to the correct file, enter command "json-server -w db.json" into your terminal. You now have access to the facts database and the page is interactive.

  6. type 'open index.html to view the application.

Content was collected from the following ADHD related websites:
chadd.org
add.org/adhd-facts>
additudemag.com
additudemag.com
villadevida.org/blog September 19, 2020
mayoclinic.org/adult-adhd

Thank you. I had a great time putting my first SPA together!!

About

A dynamic single page application with information on ADHD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published