Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
/ clojure-web-admin Public archive

A metadata-driven clojure(script)-based web admin app

Notifications You must be signed in to change notification settings

b1412/clojure-web-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not Actively Maintained

Description

Clojure web admin (CWA) is a clojure(script)-based, metadata-driven web admin system providing some generic features in web admin system.

The core features are as follows:

  • RESTful api&doc based on Computer-api&swagger
  • CRUD with data-level permissions based on korma
  • Menu tree&toolbar with button-level permissions based on reagent & re-frame
  • High-level abstract field types based on reagent-forms (e.g. image, attachment, enum, select, etc.)
  • Font-end&back-end validation based on bouncer

Other features:

  • Login/Logout
  • Optimistic lock for updating data
  • Default value showing in forms
  • Export as excel file & import from excel file
  • Bar chart for datagrid based on CanvasJs

More features are coming up..

Quick Start

This project already has some build-in moduals including ‘User’, ‘Role’, ‘Organization’, which can be used as common moduals in your new project. ‘Computer’ and ‘Brand’ moduals are only for demostration.

Let`s get start!

  • Clone the project
    git clone https://github.com/b1412/clojure-web-admin.git
        
    cd clojure-web-admin
        
  • Execute SQL script in MySql
    mysql -uroot -proot
    
    mysql> source db/demo.sql;
        
  • Start project

Open a terminal and type lein repl to start a Clojure REPL (interactive prompt).

In the REPL, type

(start-server)
(browser-repl)
  • Visit http://localhost:3000 and log in as admin

    username: admin

    password: admin

  • Go demo in details to see snapshots and descriptions of core features in demo moduals before you play it.

More details

Go wiki to go deeper into the project.

License

Copyright © 2015 Leon Zhou

Distributed under the Eclipse Public License, the same as Clojure.

About

A metadata-driven clojure(script)-based web admin app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published