Exodus
Template gernerator like Rails scaffoldings.
Translations: 日本語, 繁體中文, 简体中文, 한국어, Русский, Português, Türkçe, Español, Français, Català, Deutsch, فارسی.
Why Exodus?
-
It is troublesome to create templates.
-
From old testament
Install
-
use nimble
nimble install nim_exodus
-
set path, if you forgot.
set the command below in .config/fish/config.fish
, if you use fish
shell.
set -x PATH ~/.nimble/bin $PATH
or
set the command below in .bashrc
or .bash_profile
, if you use bash
or zsh
shell.
export PATH=$PATH:~/.nimble/bin
Required
-
nim
-
nimble
nimble install yaml (not yet)
Command
-
scaffold
exodus [g|generate] scaffold [fieldName]:[fieldType]
-
ex
exodus g scaffold user name:string
Options
-type html (default)
feature supports
-
JSON
-
React
-
Karax
-db sqlie (default)
feature supports
- postgresql
- postgres
Compile (for my notes)
nim c --out:bin/exodus -r src/exodus.nim
you can get binary file in bin/exodus.
Sample
sample
folder
It is image of scadfdolding.
nimble build
curl samples
-
select
curl localhost:5000/users/1
-
select all
curl localhost:5000/users
-
insert
curl -F name=test localhost:5000/users
-
update
curl -X PATCH -F name=hoge localhost:5000/users/1
-
delete
curl -X DELETE -F localhost:5000/users/1