Updated README database section; reformat of electors
Electors page is STILL rendering an obsolete version which is nowhere in the code, and I cannot see how it possibly can.
This commit is contained in:
parent
8cf28e9ca9
commit
13f454afb5
16
README.md
16
README.md
|
@ -59,16 +59,24 @@ Do get the database initialised, run
|
||||||
|
|
||||||
createdb youyesyet_dev
|
createdb youyesyet_dev
|
||||||
|
|
||||||
followed by
|
I'm no longer using Migratus as I'm using [Application Description Language]()
|
||||||
|
to generate the majority of the application, and, as changes are made to the application
|
||||||
|
description, new database schemas are generated. The database initialisation script will
|
||||||
|
be found at `resources/sql/youyesyet.postgres.sql`. Reference data initialisation scripts
|
||||||
|
will in due course be stored in the same directory.
|
||||||
|
|
||||||
lein migratus migrate
|
Once we have a more or less finished application it may be worth going back to
|
||||||
|
[Migratus](https://github.com/yogthos/migratus); I might have a go at generating migrations from
|
||||||
**NOTE THAT** in the namespace *youyesyet.db.schema*, there are a series of functions *create-xxx-table!*. These are a snare and a delusion; they are how I originally bootstrapped the database, but are no longer used (and should probably be deleted). The database is now constructed using [migratus](https://github.com/yogthos/migratus).
|
diffs between successive versions of the application description.
|
||||||
|
|
||||||
## Running in a dev environment
|
## Running in a dev environment
|
||||||
|
|
||||||
To run in a dev environment, checkout the *develop* branch
|
To run in a dev environment, checkout the *develop* branch
|
||||||
|
|
||||||
|
To download and install Javascript delendencies, run
|
||||||
|
|
||||||
|
lein npm install
|
||||||
|
|
||||||
To start a development web server for the application, run:
|
To start a development web server for the application, run:
|
||||||
|
|
||||||
lein run
|
lein run
|
||||||
|
|
|
@ -62,11 +62,12 @@
|
||||||
|
|
||||||
(defn name-cell
|
(defn name-cell
|
||||||
[elector]
|
[elector]
|
||||||
[:td {:key (str "name-" (:id elector))
|
[:td {:key (str "name-" (:id elector))
|
||||||
:on-click #(dispatch
|
:on-click #(dispatch
|
||||||
[:set-elector-and-page {:elector-id (:id elector)
|
[:set-elector-and-page
|
||||||
:page "gdpr"}])}
|
{:elector-id (:id elector)
|
||||||
(:name elector)])
|
:page "gdpr"}])}
|
||||||
|
(:name elector)])
|
||||||
|
|
||||||
|
|
||||||
(defn names-row
|
(defn names-row
|
||||||
|
@ -92,9 +93,7 @@
|
||||||
[:div.container {:id "main-container"}
|
[:div.container {:id "main-container"}
|
||||||
[:table
|
[:table
|
||||||
[:tbody
|
[:tbody
|
||||||
;; genders row
|
|
||||||
(genders-row electors)
|
(genders-row electors)
|
||||||
;; names row
|
|
||||||
(names-row electors)]]
|
(names-row electors)]]
|
||||||
(ui/back-link)]]
|
(ui/back-link)]]
|
||||||
(ui/error-panel "No address selected"))))
|
(ui/error-panel "No address selected"))))
|
||||||
|
|
Loading…
Reference in a new issue