Skip to content

Latest commit

 

History

History
executable file
·
48 lines (29 loc) · 1.82 KB

README.md

File metadata and controls

executable file
·
48 lines (29 loc) · 1.82 KB

@tupaia/lesmis

Lao PDR Education and Sports Management Information System

Available Scripts

In the monorepo root, you can run:

| :------------------------------------ | :--------------------------------------------------------------------------- | | yarn start-stack lesmis | Run the app and the backend servers in development mode | | yarn workspace @tupaia/lesmis start | Run the app in development mode | | yarn workspace @tupaia/lesmis test | Launch Jest test runner in the interactive watch mode | | yarn workspace @tupaia/lesmis build | Build the app for production to the build/ folder |

High-level overview

Routing

The lesmis frontend talks to two APIs:

  • lesmis-server for LESMIS-specific routes needed to run the LESMIS custom frontend.
  • admin-panel-server for running the LESMIS Admin Panel, including everything from auth, CRUD and all special routes e.g. Viz Builder.
    • Some routes like the CRUD routes are forwarded on to central-server.

Coding conventions

Views

A view is a component that connects to a route (i.e. react-router Route).

Environment variables

You need to set your environment variables in the .env file for the app to work. Go to the .env.example file to see a list of the required variables.

URL pattern

lesmis.org/:language/:organisationUnitCode:/:view

Query params: year, reportId, etc.

Example URL: lesmis.org/en/LA_Xaythany/map/?year=2020&reportId=1235

User URLS:

  • lesmis.org/en/login
  • lesmis.org/en/profile