Giter Site home page Giter Site logo

hightechu / hightechu-academy-victorianaloxonemap Goto Github PK

View Code? Open in Web Editor NEW
0.0 9.0 0.0 7.97 MB

"Victoria Naloxone Map" Web App Prototype from the 2020 HighTechU Computer Science Skills Academy

Home Page: https://hightechu.github.io/hightechu-academy-victorianaloxonemap/

License: MIT License

CSS 2.87% HTML 9.18% JavaScript 87.95%
group-project computer-science software-engineering web-application high-school hightechu university-of-victoria

hightechu-academy-victorianaloxonemap's Introduction

NALOXONE MAP

Find a kit. Save a life.

Website ⭐

Live Demo of intial prototype we worked of off

Live Demo of the current working version

Purpose

A map that guides bystanders at the scene of an overdose to the nearest naloxone kit, and walks them through what to do.

Website Layout

  • Landing Page:
    • index.html
  • Emergency:
    • step1.html
    • Step2.html
    • map.html
    • Step4.html
    • add-kit.html
  • FAQ:
    • faq.html

Getting Started 🤔

How to Run Locally

Requirements 🐶

  1. Once you have git installed, copy this link: https://github.com/hightechu/hightechu-academy-victorianaloxonemap.git
  2. open the command line, type git clone and paste the link
  3. on the command line move into the project directory
  4. run npm install
  5. run node .
  6. Head over to http://localhost:3000 and your copy of the site should be up!

📤 Contributing There are two main ways in which you can participate in the project:

Code of Conduct 📜

Naloxone Map abides by the CNCF code of conduct. Here is an excerpt:

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

Resources 📘

Licence ⚖️

This project uses the MIT Licence

hightechu-academy-victorianaloxonemap's People

Contributors

andrewdmaclean avatar becca-pettigrew avatar beccap9 avatar dependabot[bot] avatar flytewizard avatar khlocklin avatar lukedomino avatar oww321 avatar trista-d avatar zack122 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hightechu-academy-victorianaloxonemap's Issues

Add Name Tags to the Kit Locations (Front-end)

Get the name property for the GET Kits Location, and display on the Map as a Name Tag.

Something like this

marker.bindPopup("<b>Hello world!</b><br>I am a popup.").openPopup();

but linked to the specific Kit Location Marker.

Routing Service - Shutdown

The Routing Service we were using has been shutdown as of March 9th 2020.

More Information: Project-OSRM/osrm-backend#5655

Routing now gives a CORS error:

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://router.project-osrm.org/route/v1/walking/-123.3656,48…16057391?overview=false&alternatives=true&steps=true&hints=;. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.

which wasn't present before March 9th 2020.

CSS File not Linked Correctly

In client/map.html the

<link rel="stylesheet" href="leaflet-routing-machine.css" />

isn't linked correctly.

<link rel="stylesheet" href="css/leaflet-routing-machine.css" />

Edit/Remove Locations (Back-end)

Add Ability to Edit/Remove Locations.

PUT Request
DELETE Request


Show User only their Kit Locations? Add UserID to Kits Model?

Add Kit Page Loop Refresh

The https://victoria-naloxone-map.herokuapp.com/add-kit.html page refreshes in a loop.

client/js/login-register.js

// Check if user is already logged in
if (getCookie("userAuth")) {
  // User already logged in
 console.log("You are already logged in.");
  // Redirect User to Homepage
  window.location = "/add-kit.html";
}

Is the problem, it loads on the add-kit.html page and since the user is logged in they are redirected to the page in a never ending loop.

It might be best to remove this part of the code.

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.