https://github.com/philippmdoerner/snorlogue
An plugin for the prologue web-framework of the nim-language. Provides an admin interface
https://github.com/philippmdoerner/snorlogue
nim nim-lang norm prologue-framework
Last synced: 23 days ago
JSON representation
An plugin for the prologue web-framework of the nim-language. Provides an admin interface
- Host: GitHub
- URL: https://github.com/philippmdoerner/snorlogue
- Owner: PhilippMDoerner
- License: mit
- Created: 2022-10-02T13:19:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T22:48:21.000Z (over 1 year ago)
- Last Synced: 2025-03-23T18:50:51.199Z (about 1 month ago)
- Topics: nim, nim-lang, norm, prologue-framework
- Language: Nim
- Homepage:
- Size: 2.16 MB
- Stars: 27
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/PhilippMDoerner/Snorlogue/actions/workflows/docs.yml)
[](https://github.com/PhilippMDoerner/Snorlogue/actions/workflows/tests.yml)# Snorlogue
#### _Easy to use, allows you to snooze_
**Snorlogue** is a prologue extension, that provides a set of simple CRUD routes to administrate your database.
It makes use of [norm models](https://github.com/moigagoo/norm) to figure out which columns a given table has and how to best represent them.- [Documentation](https://philippmdoerner.github.io/Snorlogue/bookCompiled/) (built with [nimibook](https://github.com/pietroppeter/nimibook))
- [API index](https://philippmdoerner.github.io/Snorlogue/)## Installation
Install Snorlogue with [Nimble](https://github.com/nim-lang/nimble):$ nimble install -y snorlogue
Add Snorlogue to your .nimble file:
requires "snorlogue"
Finally, copy the resources folder from the snorlogue package into your project directory. It contains the HTML templates for the various admin pages. This will likely not be necessary in future versions of Snorlogue.
cp -r /pkgs/snorlogue-X.X.X/snorlogue/resources /src## Feature-Scope Overview
Snorlogue provides the following pages:
- **Table Overview** - Shows all registered Model-types and their corresponding SQL tables
- **SQL** - Enables direct interaction with the database. Only allows DML-SQL, not DDL-SQL.
- **About** - Displays configs and routes of your prologue application in general
- **Model Table Overview** - Shows all entries of a given Model in a paginated list
- **Model CRUD pages** - Pages enabling Create/Update/Delete interaction with individual Model entries## Example Screenshots
### Table Overview Page
### SQL Page
### About Application Page
### Model Table Overview Page
### Create Model Page
### Update Model Page
## Running Tests
Clone the repository. Make sure you have docker and docker-compose installed (this is necessary as all tests run in a container) and a running internet connection.$ nimble sqliteTests # Runs the entire test-suite using an sqlite database
$ nimble postgresTests # Runs the entire test-suite using a postgres database container