GithubHelp home page GithubHelp logo

cat-api's Introduction

cat-api

Cloud Assest Tool Backend API

How to run local Dev

CloudQuery

  • Install Cloudquery and AWS Plugin

  • Login to at least one AWS Account on the CLI

  • Update your ~/config.hcl to include the names of the AWS profiles used on your local laptop. For example I am using appdev and cicd:

      // All Provider Configurations
    
      provider "aws" {
      configuration {
          // Optional, Repeated. Add an 'accounts' block for every account you want to assume-role into and fetch data from.
          // accounts "<UNIQUE ACCOUNT IDENTIFIER>" {
          // Optional. Role ARN we want to assume when accessing this account
          // role_arn = < YOUR_ROLE_ARN >
          // Optional. Named profile in config or credential file from where CQ should grab credentials
          // local_profile = < PROFILE_NAME >
          // }
          // Optional. by default assumes all regions
          // regions = ["us-east-1", "us-west-2"]
          // Optional. Enable AWS SDK debug logging.
          aws_debug = false
          // The maximum number of times that a request will be retried for failures. Defaults to 10 retry attempts.
          // max_retries = 10
          // The maximum back off delay between attempts. The backoff delays exponentially with a jitter based on the number of attempts. Defaults to 30 seconds.
          // max_backoff = 30
          accounts "appdev" {
          local_profile = "appdev"
          }
          accounts "cicd" {
          local_profile = "cicd"
          }
      }
    

Install packages

npm install

Create Database

This only needs to be done the first time using this project. It creates a docker container called cloud_postgress

npm run db:create

Run Database

This will run the db in a docker container in the foreground

npm run db:start

Run Application

npm run dev

Seed Database

This only has to be done once

npm run seed

Helpful Tools

cat-api's People

Contributors

qgriffith avatar

Watchers

 avatar

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.