Coder Social home page Coder Social logo

vkrmis / kulu-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nilenso/kulu-website

0.0 1.0 0.0 1.77 MB

The webapp for "kulu" (Estonian for expense)

Ruby 16.01% JavaScript 3.80% CoffeeScript 2.59% CSS 11.50% HTML 12.33% Java 53.76%

kulu-website's Introduction

kulu-website

The webapp for the Kulu app.

Set up

  • Install ruby with rbenv/rvm, if you don't have it already (version).
  • gem install bundler if you have a new ruby install from the above step.
  • bundle install to install the required gems.
  • npm install to install all the js requisites.
Minor note

Since this a rails app, it requires you to setup a DB for the rails server to start up (even though we don't actually use a database for this frontend). Please copy over the database.yml.sample file to database.yml and make the required changes about your username and database and run the following command:

  • run bin/rake db:create db:migrate
  • Copy over application.yml.sample to application.yml
  • Make the necessary config changes, especially the KULU_BACKEND_SERVICE_URL

Once that's done, start the server with:

  • run bin/rails server to the start the server

Once started visit http://localhost:3000

AWS S3 CORS permissions

The JS in the app directly uploads files into S3. For this to work, the CORS permissions need to be set up on the S3 bucket. Steps:

  1. Visit the S3 AWS Console
  2. Select the bucket (see application.yml for the names).
  3. Click Properties tab
  4. Open up the CORS Configuration and change the HTTP methods and headers XML nodes (retain everything else):
<AllowedMethod>HEAD</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>

<AllowedHeader>*</AllowedHeader>

Remember to do this for both dev and prod buckets.

Extractor API

The extractor interface, which is used to extract/transcribe expenses for all organizations is separated out from the rest of the code. As we may not need a different end-point for this to work as it could just be regular user-role later on. For easy removal of this, it's split into these files:

  • models/kulu_service/extractor_api.rb
  • controllers/extractor_controller.rb
  • views/extractor/

kulu-website's People

Contributors

kitallis avatar jithugopal avatar who828 avatar arnab avatar ukriish avatar

Watchers

James Cloos 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.