Skip to content

AlchemistsLab/covalent-aws-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covalent AWS Serverless

This repository is a Covalent Serverless Application deployed on Amazon Web Services. This wrapper will assist developers who want to utilize Covalent data without any server setup needed (serverless).

There consist of 2 modules:

aws-lambda

A Lambda function for requesting Covalent API.

How to setup

  • Go to AWS Lambda Functions page

  • Click Create function Button to start creating function

  • Enter your Lambda function information

    lambda-function-information
  • Click Create function Button

  • Now go back to aws-lambda directory

  • Install dependencies

     npm install
    
  • Zip all files and folders inside aws-lambda directory

  • Upload .zip file on Code section

    upload-zip-file
  • Go to Configuration section

    • General configuration

      • set Timeout to 30 seconds
    • Environment variables

       API_HOST = https://api.covalenthq.com/v1/
       API_KEY = {YOUR_COVALENT_API_KEY}
      
  • Click + Add trigger Button

    add-trigger
  • Set Trigger configuration

    trigger-configuration
  • Click Add Button

  • After add trigger successfully, you will find the API Gateway: covalent trigger

  • You can get your API endpoint in Details

  • How to use your API on AWS

     GET {API endpoint}?path={COVALENT_API_PATH}&param1=value1&param2=value2&...
    



react-app

An example of React app using create-react-app.

DEMO

How to setup

  • Go to react-app directory

  • Set environment variable in .env file

     REACT_APP_COVALENT_API_AWS_URL={AWS_API_GATEWAY_ENDPOINT}
    
  • Install dependencies

     npm install --force
    
  • Run on localhost

     npm start
    
  • Build app

     npm run build
    
  • Deploy app on AWS S3 (Optional)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published