Display song words on-screen for live events, like church services.
It is a web-based app that provides presenter and presentation views for displaying the words.
It is currently fairly specific to a particular schema for hymn and song words.
With Node.js installed,
npm i -g ts-node
npm install
npm run build
The file data/songs.json
needs to be created and populated with the song words. A sample file is present in songs.sample.json
.
The hymns-text-parser.ts
script reads in .docx
files and outputs JSON that can be piped to data/songs.json
. The corresponding file songs.sample.docx
can be used as an example.
cp songs.sample.json data/songs.json
ts-node hymn-text-parser.ts songs.sample.docx > data/songs.json
ts-node hymn-text-parser.ts data/songs.docx > data/songs.json
ts-node hymn-text-parser.ts 'data/files/Hymns/*.docx' > data/songs.json
ts-node hymn-text-parser.ts 'data/files/Hymns.zip' > data/songs.json
cp ccli.sample.json data/ccli.json
Change the 0 to your license number. Must be a JSON number value.
-
In the root directory (with this README), start the server:
npm start
e.g.
> [email protected] start C:\Users\Joshd\word-projector > ts-node server.ts Listening on http://192.168.8.35:8080
-
In a browser, navigate to http://localhost:8080/
word-projector uses webpack for asset bundlinng. Front-end code needs to be built from the TypeScript sources. Use npm run build
to build it or npm run build -- --watch
to build as you make changes to the sources.