Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyclecycle/lipa-db
Database for LIPA
https://github.com/cyclecycle/lipa-db
Last synced: 21 days ago
JSON representation
Database for LIPA
- Host: GitHub
- URL: https://github.com/cyclecycle/lipa-db
- Owner: cyclecycle
- License: mit
- Created: 2019-05-30T13:09:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:11:37.000Z (about 2 years ago)
- Last Synced: 2024-11-05T11:17:48.235Z (2 months ago)
- Language: Python
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LIPA-DB
Database and backend functionality for LIPA.
- SQLite databases for test and prod environments
- Exposes DBs through REST interface
- Contains mock data
- Processes for parsing and inserting documents into the DB## Scripts
Run all scripts from root directory.
### Initialise database
- Overwrites existing /databases/test.db
- Uses schemas/schema.sql
- Inserts mock data```bash
bash init_test_db.sh
```### Start REST server:
```bash
bash scripts/start_rest.sh
```## Development
### Python
Install dependencies:
```bash
pip install -r requirements.txt
```Run any python file from the root directory with:
```bash
PYTHONPATH="." python /path/to/file
```### JS
Install dependencies:
```bash
npm install
```Tests (ensure REST started first):
```
npm run test
```## Built with
- sqlite-to-rest