You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
resources | 3 years ago | |
src/heyarne/all_my_friends | 1 year ago | |
ssl | 3 years ago | |
uploads | 3 years ago | |
.dockerignore | 3 years ago | |
.envrc | 2 years ago | |
.gitignore | 3 years ago | |
Dockerfile | 3 years ago | |
README.md | 1 year ago | |
deps.edn | 2 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago | |
shadow-cljs.edn | 3 years ago | |
shell.nix | 2 years ago |
README.md
All my Friends
This is scratching a weird itch that started when I saw my friends mostly online.
What is happening?!
The project is built via shadow-cljs. You can run a dev build like so:
clojure -A:cljs -m shadow.cljs.devtools.cli server app
This starts a web server at localhost:8080 and also starts an nRPL server that you can connect to in your editor
Similarly, a production-optimized app can be generated via
clojure -A:cljs -m shadow.cljs.devtools.cli release app
If you want to get detailed info about bundle size, try:
clojure -A:cljs -m shadow.cljs.build-report app report.html
The server component has to be started separately. You probably want to do this from within your editor while developing (see below).
Important paths
src/heyarne/all_my_friends/server.clj
: Contains a simple HTTP server that serves static files and has a handler for uploadssrc/heyarne/all_my_friends/client.cljs
: Is the starting point for the client applicationresources/config.edn
: Uses aero for configuration.resources/public
: Contains HTML and CSS files.resources/public/js
is automatically compiled.deps.edn
: Client and server dependencies and build configurationshadow-cljs.edn
: Client-side build config for shadow-cljs