Skip to content

avantifellows/db-service

Repository files navigation

Dbservice

A Phoenix-based database service application with LiveView UI for data imports and comprehensive API documentation.

Quick Start

To set up this project locally, visit the installation steps.

Development

Running the Application

For macOS users:

./start_server_macos.sh

For Windows/Linux users or manual setup:

mix phx.server

Visit localhost:4000 to access the application.

Note: macOS users can also use the convenient alias dbservice from anywhere in the terminal.

API Documentation

Access the Swagger documentation at: http://localhost:4000/docs/swagger/index.html

Note: The macOS startup script automatically generates Swagger documentation. Windows/Linux users should run mix phx.swagger.generate once before accessing the API docs. For more details about API documentation setup, see API Documentation Guide.

Database Management

For database operations like fetching data from production/staging:

macOS/Linux users:

./utils/fetch-data.sh

Windows users:

bash utils/fetch-data.sh

See Database Utils Guide for setup and configuration.

Assigning Programs to Schools

To assign program_ids to schools based on school category and codes, run:

./utils/assign_school_programs.sh [local|staging|production]

This script assigns:

  • JNV NVS program to all JNV schools (except 8 excluded UDISE codes)
  • JNV CoE program to 18 Centre of Excellence schools
  • JNV Nodal program to 13 Nodal schools (2025-26)

Note: This script has likely already been run on production/staging. Running it again is safe (idempotent) but unnecessary.

Documentation

Learn More

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors