GithubHelp home page GithubHelp logo

tharindu37 / medicinesforlk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lsflk/medicinesforlk

0.0 0.0 0.0 39.82 MB

This is the repo for the medicines project initiated in May 2022 in collaboration with the Red Cross and others.

Home Page: https://donor-portal-medicinesfor-lk.vercel.app

License: Apache License 2.0

JavaScript 0.34% TypeScript 78.22% CSS 19.89% HTML 1.54%

medicinesforlk's Introduction

Elixir - Medicines for LK

This is the repo for Elixir - Medicines for LK application.

Setup Development Environment Locally

Please make sure you have all the listed prerequisites tools installed locally.

  1. Node - Latest
  2. npm - Latest

Steps

  • Clone your forked repository
  • Move in to cloned repository
    cd MedicinesforLK
    

Admin Portal

  • Change Directory to Admin Portal

    cd admin-portal
    
  • Add .env.local file to the level where package.json exist

  • Add following properties to the .env.local file

    REACT_APP_CLIENT_ID = <Choreo Application Client ID>
    REACT_APP_CLIENT_SECRET = <Choreo Application Client Secret>
    REACT_APP_SIGN_IN_REDIRECT_URL = http://localhost:3000
    REACT_APP_SIGN_OUT_REDIRECT_URL = http://localhost:3000
    REACT_APP_ADMIN_BACKEND_URL=https://9d2b57ae-4349-44f2-971c-106ae09d244d-dev.e1-us-east-azure.choreoapis.dev/qmov/admin-api/1.0.0
    REACT_APP_DONOR_BACKEND_URL=https://9d2b57ae-4349-44f2-971c-106ae09d244d-dev.d.e1-us-east-azure.choreoapis.dev/qmov/donor-api/1.0.0
    
    

    Note: REACT_APP_SIGN_IN_REDIRECT_URL and REACT_APP_SIGN_OUT_REDIRECT_URL are the URL that the application is running on. So in local it is http://localhost:3000. Always better keep the local development to this URL as we have whitelisted only this.

  • Install all the dependencies

    npm install
    
  • Build the application using

    npm run build
    
  • Start the server with

    npm start
    
  • Visit your app at http://localhost:3000

Donor Portal

  • Change Directory to Donor Portal

    cd donor-portal
    
  • Add .env.local file to the level where package.json exist

  • Add following properties to the .env.local file

    REACT_APP_CLIENT_ID = <Choreo Application Client ID>
    REACT_APP_CLIENT_SECRET = <Choreo Application Client Secret>
    REACT_APP_SIGN_IN_REDIRECT_URL = http://localhost:3000
    REACT_APP_SIGN_OUT_REDIRECT_URL = http://localhost:3000
    
    

    Note: REACT_APP_SIGN_IN_REDIRECT_URL and REACT_APP_SIGN_OUT_REDIRECT_URL are the URL that the application is running on. So in local it is http://localhost:3000. Always better keep the local development to this URL as we have whitelisted only this.

  • Install all the dependencies

    npm install
    
  • Start the server with

    npm start
    
  • Visit your app at http://localhost:3000

medicinesforlk's People

Contributors

nipunamarcus avatar anjula-sack avatar jayasanka-sack avatar nipuna-g avatar randilap avatar dinuka-rp avatar yaiyasam avatar aisirachcha21 avatar manojll avatar tharindu37 avatar gravewalker666 avatar kanushka avatar sanjaiyan-dev avatar manuranga avatar nipunsampath avatar timashan avatar muthulee avatar amilaj avatar bawanthathilan avatar gajindubandara avatar ruhaim avatar sasindudilshara avatar yathindrak avatar nshamit avatar brionmario avatar kumuditha-udayanga avatar madhawa97 avatar nilesh93 avatar ramdesh avatar kulathilake 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.