Code Monkey home page Code Monkey logo

srs's Introduction

About SRS

SRS is an all in one circular economy platform created to transform the waste management industry in Africa to fit into the 21st century requirements to create jobs, boost circular economy and deliver a structure for recycling management. This Project is an MVP of the SRS Platform including REST APIs which has been created to able partners programmatic access to the Platform. The Project is built on the Laravel Framework.

Build Status

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Installing

To run a local copy of this project simply follow the below steps:

  • Firstly, clone the repo to your local project.
  • Secondly, Install Composer Dependencies. Run composer install
  • Configure important environment variables, especially, Database, AfricasTalking Envs, MTN MOMO Envs, and Google API Key. You can easily copy the .env.example file to .env
  • Migrate and seed the database php artisan migrate --seed
  • Clear Optimizations if any php artisan optimize:clear
  • Run the Artisan Server php artisan serve

Contributing

You can simply work with the company to setup on the company repo as a contributor, you can also consider contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

None For Now

Security Vulnerabilities

If you discover a security vulnerability within the project, kindly send an e-mail to Topazdom Technologies Limited via [email protected], if you think the Vulnerability is directly related to Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license. While SRS is a public-good platform, all rights reserved.

srs's People

Contributors

zaghadon avatar

Watchers

 avatar

srs's Issues

A better map implementation

Hello team, look I just cooked this should work better for the geolocation on registration.

function initMap() {
  const addressInput = document.getElementById('address');
  const latitudeInput = document.getElementById('latitude');
  const longitudeInput = document.getElementById('longitude');

  const map = new google.maps.Map(document.getElementById('map'), {
    zoom: 15
  });

  if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(
      function(position) {
        const userLatLng = {
          lat: position.coords.latitude,
          lng: position.coords.longitude
        };

        map.setCenter(userLatLng);
        const marker = new google.maps.Marker({
          position: userLatLng,
          map: map,
          draggable: true
        });

        google.maps.event.addListener(marker, 'dragend', function() {
          const position = marker.getPosition();
          latitudeInput.value = position.lat();
          longitudeInput.value = position.lng();
        });

        google.maps.event.addListener(map, 'click', function(event) {
          marker.setPosition(event.latLng);
          latitudeInput.value = event.latLng.lat();
          longitudeInput.value = event.latLng.lng();
        });

        addressInput.value = "Fetching current location...";
        const geocoder = new google.maps.Geocoder();
        geocoder.geocode({ 'location': userLatLng }, function(results, status) {
          if (status === 'OK') {
            if (results[0]) {
              addressInput.value = results[0].formatted_address;
            } else {
              addressInput.value = "Address not found";
            }
          } else {
            addressInput.value = "Geocoding failed due to: " + status;
          }
        });
      },
      function() {
        handleLocationError(true, map.getCenter());
      }
    );
  } else {
    // Browser doesn't support geolocation
    handleLocationError(false, map.getCenter());
  }
}

function handleLocationError(browserHasGeolocation, fallbackLatLng) {
  const addressInput = document.getElementById('address');
  addressInput.value = browserHasGeolocation ?
    'Error: The Geolocation service failed.' :
    'Error: Your browser doesn\'t support geolocation.';
  map.setCenter(fallbackLatLng);
}

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.