GithubHelp home page GithubHelp logo

project-data-platform-ts's Introduction

Project Data Platform

This is a work in progress.

We are currently attempting to build a website to address broken supply chains, such as occur during natural disasters. This is an attempt to build a website that allows makers and manufacturers to match demand for necessary articles which they can make. This matching of demand to supply is a fundamental human problem that could allow lives to be saved and distress relieved during the serial natuarl disaster that we face.

Technology

At present, we are using Microsoft Azure to build a basic website.

Harry Pierson has explored an AI-based matching of tools and capabilities that are available to tools and capabilities which are are needed to make needed articles.

Volunteers Needed

We need volunteers. Although we can use a wide variety of skills we need:

  1. Programmers who can build a website with Azure
  2. Front-end programmers who, using Nuxt/Vue/Boostrap, can implement visual components. Apply here: https://helpful.directory/opportunity?id=Software-Developer---Typescript-446
  3. AI programmers who can use vector-matching a LLMs to build a robust matching algorithm.

Older Content (Obsolete below this point.)

TypeScript port of orginal Project Data Python Code

Current Website

The current website is implemented with Github Pages.

project-data-platform-ts's People

Contributors

devhawk avatar jbutler-helpful avatar robertlread avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

project-data-platform-ts's Issues

Security for this repo

We want security, permissions, and teams for this repo to be the same as the project-data-platform repo.

Reinstall front-end from azure branch....

Today we were not able to run the front-end, though it ran previous. I believe I removed nuxt or the /dist directory in my github manipulations.

One way or another, we should create a "clean slate" installation of next to attempt to reach our backend. At present, the back end runs locally; we are attempting to reach our storage server in Azure, which we believe we did successfully create.

CORS problem of the s3 buckets from the library....

This URL is public and works great:

https://s3.amazonaws.com/github-helpfulengineering-library

...but when called from AJAX within a page, it throws a CORS error:

project-data-platform-ts/:1 Access to fetch at 'https://s3.amazonaws.com/github-helpfulengineering-library' from origin 'https://helpfulengineering.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Screen Shot 2024-04-23 at 5 32 53 PM

Here is the code:

   // This worked...
    var url = `https://s3.amazonaws.com/${albumBucketName}`;
    fetch(url)
  .then(response => {
    if (!response.ok) {
      throw new Error('Network response was not ok');
    }
    return response.text();
  })
  .then(data => {
    console.log(data); // Do something with the content of the file
  })
  .catch(error => {
    console.error('There was a problem with the fetch operation:', error);
  });

I believe in S3 we may have to set a CORS rule. This reference suggests this:

https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors-troubleshooting.html

I believe in our S3 configuration we need to set the "Access-Control-Allow-Origin" header on the response. I suggest it is safe to set this to "*" for our S3 bucket.

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.