Git Product home page Git Product logo

incantogamus's Introduction

(Incantogamus) Video Games API

Usage with docker

  1. Clone the repo

    git clone `https://github.com/civilcoder55/incantogamus.git`
  2. Change directory

    cd incantogamus
  3. update the env file with proper Leave it if you want, default values should work

    cp .env.example .env
  4. ensure run.sh is executable

    chmod +x run.sh
  5. Build images and run containers

    docker-compose up -d
  6. Create and Sync database (already run with container up)

    docker exec -it incantogamus-node npm run db:sync
  7. Access API at

    http://localhost:3000/v1/docs
  8. Access docker logs

    docker logs -f incantogamus-node
  9. To run test

    docker exec -it incantogamus-node npm run test

Deploy to kubernetes (miniKube)

  1. Clone the repo

    git clone `https://github.com/civilcoder55/incantogamus.git`
  2. Change directory

    cd incantogamus
  3. build the image

    eval $(minikube docker-env) # to use local docker image in minikube
    docker-compose build
  4. update the k8s/secrets.yaml file with proper values

  5. ensure run.sh is executable

    chmod +x run.sh
  6. Create k8s resources

    kubectl apply -f k8s
  7. get the minikube node ip

    minikube ip
  8. Add the ip to your hosts file

    echo "$(minikube ip) incantogamus.com" | sudo tee -a /etc/hosts
  9. Access API at

    http://incantogamus.com/health

incantogamus's People

Contributors

civilcoder55 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.