Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0.0 #7

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use_nix
32 changes: 19 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
node_modules/
public/js

/target
/checkouts
/src/gen

pom.xml
*jar
/lib/
/classes/
/out/
/target/
.lein-deps-sum
.lein-repl-history
.lein-plugins/
.repl
.nrepl-port
.cpcache/
.rebel_readline_history
resources/public/cljs-out/
pom.xml.asc
*.iml
*.jar
*.log
.shadow-cljs
.idea
.lein-*
.nrepl-*
.DS_Store

.hgignore
.hg/
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Rameez Khan
Copyright (c) 2021 Rameez Khan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: build test
.PHONY: build

build:
lein fig:build
dev:
yarn dev

production:
lein fig:min
release:
yarn release

nrepl:
clj -M:nrepl
34 changes: 1 addition & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,11 @@ Live version can be accessed [here](https://financialhealth.app) 👈🏽.

Assess your financial health with a high level dashboard.

### Features
- [x] Chart to view your salary over time
- [ ] View your current net worth

### Future work
- [ ] View your net worth over time
- [ ] Track TFSA contributions

## Development

To get an interactive development environment run:

lein fig:build

This will auto compile and send all changes to the browser without the
need to reload. After the compilation process is complete, you will
get a Browser Connected REPL. An easy way to try it is:

(js/alert "Am I connected?")

and you should see an alert in the browser window.

To clean all compiled files:

lein clean

To create a production build run:

lein clean
lein fig:min


## License

MIT License

Copyright (c) 2020 Rameez Khan
Copyright (c) 2021 Rameez Khan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 0 additions & 4 deletions dev.cljs.edn

This file was deleted.

93 changes: 0 additions & 93 deletions example-data.csv

This file was deleted.

31 changes: 0 additions & 31 deletions figwheel-main.edn

This file was deleted.

19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "financial-health-dashboard",
"version": "2.0.0",
"main": "index.js",
"repository": "[email protected]:rameezk/financial-health-dashboard.git",
"author": "Rameez Khan",
"license": "MIT",
"dependencies": {
"react": "17.0.1",
"react-dom": "17.0.1"
},
"devDependencies": {
"shadow-cljs": "^2.11.18"
},
"scripts": {
"dev": "shadow-cljs watch app",
"release": "shadow-cljs release app"
}
}
25 changes: 0 additions & 25 deletions project.clj

This file was deleted.

File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
26 changes: 26 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content=
"width=device-width, initial-scale=1">
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<!-- <link href="css/style.css" rel="stylesheet" type="text/css"> -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<title>Financial Health Dashboard</title>
</head>

<body class="min-h-screen bg-gray-800">
<div id="app"></div><!-- end of app div -->
<!-- <script defer src=
"https://use.fontawesome.com/releases/v5.3.1/js/all.js" type=
"text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" type="text/javascript"> </script> -->
<script src="/js/main.js" type="text/javascript"></script>
<script>financial_health_dashboard.core.init()</script>
</body>
</html>
File renamed without changes.
45 changes: 0 additions & 45 deletions resources/public/index.html

This file was deleted.

7 changes: 0 additions & 7 deletions resources/public/test.html

This file was deleted.

24 changes: 24 additions & 0 deletions shadow-cljs.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{:source-paths
["src"]

:nrepl {:port 9000}

:dependencies
[[cider/cider-nrepl "0.25.8"]
[reagent "1.0.0"]
[re-frame "1.1.2"]]

:builds
{:app {:target :browser
:output-dir "public/js"
:asset-path "/js"

:modules
{:main
{:entries [financial_health_dashboard.core]}}

:devtools
{:http-root "public"
:http-port 3001}

:release {:compiler-options {:optimizations :simple}}}}}
11 changes: 11 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let pkgs = import <nixpkgs> { };
in pkgs.mkShell rec {
name = "financial-health-dashboard";

buildInputs = with pkgs; [
nodejs-14_x
(yarn.override { nodejs = nodejs-14_x; })
clojure
jdk
];
}
Loading