Git Product home page Git Product logo

oscar-web's Introduction

OSCaR - Open Source Case-management and Record-keeping

Open Source Case-management and Record-keeping.

Build Status Build Status Build Status

Requirements

  • Docker Desktop (latest stable version for your platform)

Getting Started

Given that we are using Docker, then most common development tasks you will just need the core services which are essentially the OSCaR App Service (Rails) and the OSCaR Database Service (Postgres). To spin these services up only, use the following make command:

make start_core

This starts a Rails, Postgres and Webpack container. If you need the Mongo container running then execute the following command in a separate terminal:

make start_mongo

See the project Makefile for a list of all the available commands.

Once the containers have fired up open a web browser and navigate to http://localhost:3000 to open the app. To login, click on the 'dev' organizations logo (there should only be the one logo) and the username (email) is any of the users (listed in the 'users' sheet) of the lib/devdata/dev_tenant.xlsx spreadsheet with the password set to 123456789.

NOTE If this is the first time you have run this you may need to stop the containers and run it again!

Debugging using Pry

If you want to debug the Rails application using Pry you need to attach to the container running Rails first. To do that in a new terminal window run:

make rails_attach

Now when your code runs and gets to the binding.pry line it will halt and a Pry REPL session will be available in the terminal window where you are attached.

When you have finished dubugging just type exit in the Pry REPL session as you normally would. Keep this terminal attached for convenience if you need to use Pry again.

NOTE: To detach the tty without also terminating the Rails container, you need to use the escape sequence Ctrl+P followed by Ctrl+Q.

Troubleshooting

Issue pending migrations when starting Docker container

If you have pending migrations that prevent the Docker container from starting for example:

app | You have 2 pending migrations:
app |   20200603071312 ________
app |   20200603081325 ________
app | Run `rake db:migrate` to update your database then try again.
app exited with code 1

Then you can fix this by running the following command and then starting services again.

make db_migrate
Master Branch Stable Branch Staging Branch
Build Status Build Status Build Status

Open Source Case-management and Record-keeping.

OSCaR is an open source and free to use (under AGPL) software for case managment focusing on family care first policies of vulnerable children.

The service is available as a subscription via the OSCaR Online Application and can be run privately from this repository. For more information about using the hosted version via the online application please reach out to the support contacts there. If you are already using OSCaR and need support you can find the training manual available on the website as well as inline, contextual help thoughout the application.

OSCaR Guides

We have three guides available depending on how you are wanting to use OSCaR, either via the hosted version, a private hosted version or locally to run tests or even contribute code to the project!

So with that, if you are:

  • Looking for the hosted version of OSCaR, please visit out official OSCaR Website
  • Want to run a privately hosted vesion of OSCaR in the cloud then visit the private hosting guide
  • Want to run a local vesion of OSCaR on your laptop or home computer as a developer then visit developer guide

Issue Reporting

If you experience with bugs or need further improvement, please create a new issue under Issues.

Contributing to OSCaR

Pull requests are very welcome. Before submitting a pull request, please make sure that your changes are well tested. Pull requests without tests will not be accepted.

Not sure what to work on?

Perhaps pick one of the existing issues or submit an issue and then work on that. Alternatively, please feel free to reach out to one of the supporting authors either at DevZep or CIF as indicated below.

Authors

OSCaR is developed by CIF

License

OSCaR Web Application is released under AGPL

oscar-web's People

Contributors

bunhok avatar bunhouth avatar bunlongoung avatar chileap avatar choengteur avatar dependabot[bot] avatar doungdara-we avatar duchsamai avatar janesoo avatar jensendarren avatar kirykr avatar ks-nireak avatar makaramp avatar measbona avatar missjennie avatar novsochetra avatar parinha avatar phanithism avatar pirunseng avatar pitouly avatar ratha-webessentials avatar rayuth-you avatar somethvictory avatar sophalsun avatar sopharymsh avatar sorphorn avatar thorn-lysa avatar tvcam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

oscar-web's Issues

Cancel button on 'Refer Client' page does not work.

When the user goes to a client profile and uses the refer client feature, then clicks the cancel button the 'are you sure?' message does not do anything when the user clicks 'yes'.

Steps to Reproduce:
While logged into OSCaR and on a client's profile page: /clients/iuo-709

  1. Click the 'Refer Client' button.
  2. Select an option from the drop down list. This will open the Refer Client form.
  3. Click the 'Cancel' button. This will open the 'Are you sure?' message.
  4. Click the 'Yes' button. Nothing happens.

What should happen:
When the user clicks the yes button they should be returned to the client's profile page.

Error deploying app in Docker

Following directions outlined in OSCaR Private Hosting Guide. Hitting a roadblock when deploying or starting the app in the container. We have not deployed the OSCaR in AWS, but using Ubuntu deployed in VMWare Workstation. All the steps execute fine and the app is complied fine.

Do we need to make changes in envirmnets file, as the failure is coming from /app/config.ru. Please see the attached log file.
app.txt

Family - Enable Reject Referral Email

There is an email needs to be sent when user reject the referral family. This feature should be done after family referral and reject features are complete.

The 'Clients' field on the Create/Edit user form does not show entire list of clients that should be displayed.

When the user tries to specify that a user is responsible for certain clients from the User Create/Edit page the drop down list that appears when the user clicks on the client field is incomplete.

Steps to reproduce:

  1. While logged into OSCaR and on the Create/Edit user page (/admin/users/263/edit?country=cambodia&locale=en), clicl on the 'Clients' drop down. A list of clients who you can make the user responsible for appears.
  2. The list does not show all of the clients who should appear.

What should happen:

  • The list of clients that appears here should show all clients from the current instance except those with the 'status' Exited.

NoMethodError

Deploying on a local Ubuntu Server machine using private hosting guide. Receive "NoMethodError in Organizations#index" when opening in browser.

Specifically it states:

undefined method `country' for nil:NilClass

Points to line 111 in /app/views/organizations/index.html.haml

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.