diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml new file mode 100644 index 0000000..d4acc3c --- /dev/null +++ b/.github/workflows/clojure.yml @@ -0,0 +1,46 @@ +name: Clojure CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + backend-test: + name: Backend Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: DeLaGuardo/setup-clojure@3.1 + with: + tools-deps: '1.10.1.763' + + - name: Build tests + working-directory: ./backend + run: clojure -M:test + + frontend-test: + name: Frontend Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 15.x + + - run: npm install karma karma-cljs-test --save-dev karma-chrome-launcher --save-dev + working-directory: ./frontend + + - run: npm install -g karma-cli + + - name: Build tests + working-directory: ./frontend + run: npx shadow-cljs compile ci + + - name: Run tests + working-directory: ./frontend + run: karma start --single-run diff --git a/README.md b/README.md new file mode 100644 index 0000000..4f9be7b --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Chicken master + +Handle the day-to-day business of a small farm. Schedule purchases, track costs, see what sells best etc. + +## Development + +See the READMEs in the `backend` and `frontend` folders. + + +## TODO +* daily view +* infinite scroll + +* Move to different day + +* handle regular customers +** every n days +** copy over to next week +** cancel regular order + +* settings menu + +* products CRM diff --git a/backend/README.md b/backend/README.md index 86bab92..9d0b327 100644 --- a/backend/README.md +++ b/backend/README.md @@ -1,3 +1,6 @@ +# Backend + +The API for the chickens service. ## Development diff --git a/frontend/README.md b/frontend/README.md index 7a3b8e8..707506b 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -1,3 +1,6 @@ +# Frontend + +All visible stuff. ## Development @@ -29,6 +32,6 @@ Compile the code: Start the tester: - karma start + CHROME_BIN=/usr/bin/chromium karma start -If the tests are only to be run once, use `karma start --single-run` +If the tests are only to be run once, use `CHROME_BIN=/usr/bin/chromium karma start --single-run`