GithubHelp home page GithubHelp logo

gilang-kawanlama's Introduction

Kawanlama Assesment Test

Dependencies

ruby 3.3.0
kafka
imagemagick
postgresql
docker (optional)

ENV Vars

config/database.yml

default: &default
  adapter: postgresql
  encoding: unicode
  # For details on connection pooling, see Rails configuration guide
  # https://guides.rubyonrails.org/configuring.html#database-pooling
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  host: <%= ENV.fetch("KL_DB_HOST") { "127.0.0.1" } %>
  port: <%= ENV.fetch("KL_DB_PORT") { 5432 } %>
  password: <%= ENV.fetch("KL_DB_PASSWORD")%>
  username: <%= ENV.fetch("KL_DB_USERNAME") { "postgres" } %>

development:
  <<: *default
  database: <%= ENV.fetch("KL_DB_DEV") { "kawanlama_development" } %>
  

test:
  <<: *default
  database: <%= ENV.fetch("KL_DB_TEST") { "kawanlama_test" } %>
karafka.rb

config.kafka = { 'bootstrap.servers': ENV.fetch("KAFKA_URL") { '127.0.0.1:9092' } }

Setup

bundle install
rails db:migrate
rails db:seed

if kafka installer on machine just make sure it's running well, if no can use this

git clone [email protected]:karafka/karafka.git
cd karafka
docker-compose up

Run Test

rspec

Run The App

bin/dev on separate terminal run bundle exec karafka server

Live App

Click Here

Credentials

Admin: [email protected]:password
User: [email protected]:password

TODO

Export doesn't work on Heroku due to Heroku can't write file, need to move it to storage bucket(in this case I use cloudinary), but export works normally on local machine

gilang-kawanlama's People

Contributors

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