Giter Site home page Giter Site logo

preetiw / chrome-service-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhatinsights/chrome-service-backend

0.0 0.0 0.0 45.66 MB

Source code repository for chrome backend

License: Apache License 2.0

Shell 1.71% Go 96.05% Makefile 1.31% Dockerfile 0.93%

chrome-service-backend's Introduction

Looking for Navigation and all services configuration?

Follow this link for docs

chrome-service-backend

Source code repository for chrome backend

Requirements

Postgres 14 Go 1.18

Local Testing

  1. There are environment variables that are necessary for the application to start. Please copy the contents within env.example and move them over to a new .env file at the root of your local app directory. There, set the values of the variables accordingly for your local db configuration. This repo also supports docker-compose up for its postgres server and make infra to run all needed containers. An example .env for this would look like:
PGSQL_USER=chrome
PGSQL_PASSWORD=chrome
PGSQL_HOSTNAME=0.0.0.0
PGSQL_PORT=5432
PGSQL_DATABASE=postgres
  1. Run the server by using go run . or go run main.go
  2. To test the service, at the moment, you are able to hit the following endpoint:
GET http://localhost:8000/health
GET http://localhost:8000/api/chrome-service/v1/hello-world

Headers

To query any endpoint, you will need a x-rh-identity header in your request.

You can use this value as an example:

eyJpZGVudGl0eSI6eyJ1c2VyIjp7InVzZXJfaWQiOiIxMiJ9fX0=

Helpful Make targets

make database will start a podman database, you need to fill out the .env file first as detailed above.

make clean will tear down the database.

make dev run the service

make infra will create the db and kafka locally

chrome-service-backend's People

Contributors

hyperkid123 avatar blakeholifield avatar rsun19 avatar karelhala avatar arivepr avatar insanezein avatar dlabrecq avatar epwinchell avatar aneelac22 avatar riccardo-forina avatar apinkert avatar adonispuente avatar randy424 avatar fhlavac avatar mkholjuraev avatar cdcabrera avatar florkbr avatar bastilian avatar wscalf avatar gkarat avatar radekkaluzik avatar josejulio avatar ryelo avatar himdel avatar astonlele avatar fewwy avatar lesamo avatar syed avatar avisiedo avatar bradr5 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.