Comments (9)
There isn't an http server anymore, you should be able to go to index.html in the public folder and open it in the browser.
from reagent-frontend-template.
Yeah that works - maybe that should go into the readme?
from reagent-frontend-template.
glad to hear it, and fixed the docs :)
from reagent-frontend-template.
The front-end version of the template doesn't run an HTTP server. You simply open the index.html
file found in the public
folder of the generated project in the browser.
For example, if you create a project by running lein new reagent-frontend myapp
, you'll have myapp/public/index.html
. If you're still having trouble check the following things to troubleshoot:
Make sure that you have JDK8 and latest Leiningen installed:
>javac -version
javac 1.8.0_40
>lein version
Leiningen 2.7.0 on Java 1.8.0_40 Java HotSpot(TM) 64-Bit Server VM
(Leiningen 2.6.1+ should work fine)
If you have that, then make sure the project is created by running:
lein new reagent-frontend myapp
go to the folder
cd myapp
start Figwheel
lein figwheel
Once it starts, you should see the following prompt:
lein figwheel
Figwheel: Cleaning because dependencies changed
Figwheel: Cutting some fruit, just a sec ...
Figwheel: Validating the configuration found in project.clj
Figwheel: Configuration Valid :)
Figwheel: Starting server at http://0.0.0.0:3449
Figwheel: Watching build - app
Figwheel: Cleaning build - app
Compiling "public/js/app.js" from ["src" "env/dev/cljs"]...
Successfully compiled "public/js/app.js" in 14.124 seconds.
Figwheel: Starting CSS Watcher for paths ["public/css"]
Figwheel: Starting nREPL server on port: 7002
Launching ClojureScript REPL for build: app
Figwheel Controls:
(stop-autobuild) ;; stops Figwheel autobuilder
(start-autobuild [id ...]) ;; starts autobuilder focused on optional ids
(switch-to-build id ...) ;; switches autobuilder to different build
(reset-autobuild) ;; stops, cleans, and starts autobuilder
(reload-config) ;; reloads build config and resets autobuild
(build-once [id ...]) ;; builds source one time
(clean-builds [id ..]) ;; deletes compiled cljs target files
(print-config [id ...]) ;; prints out build configurations
(fig-status) ;; displays current state of system
Switch REPL build focus:
:cljs/quit ;; allows you to switch REPL to another build
Docs: (doc function-name-here)
Exit: Control+C or :cljs/quit
Results: Stored in vars *1, *2, *3, *e holds last exception object
Prompt will show when Figwheel connects to your application
At this point the app is compiled and you should be able to open the public/index.html
file in the browser.
from reagent-frontend-template.
Thanks, it works now. I had trouble figuring out that I must open an file:// in the browser. what figweel starts at
Figwheel: Starting server at http://0.0.0.0:3449
is beyond me.
from reagent-frontend-template.
Yeah definitely :-)
from reagent-frontend-template.
Thank you though, I'm very happy with this :)
from reagent-frontend-template.
@yogthos I was inspired from your post in https://news.ycombinator.com/item?id=12189673 and ended up here :) not that great experience after all. Please help.
There isn't an http server anymore, you should be able to go to index.html in the public folder and open it in the browser.
What that suppose to mean? What is the exact address?
http://127.0.0.1:3449/public/index.html Dosn't work !
from reagent-frontend-template.
The server that figwheel starts is used to recompile and hotload code in the browser during development. Any changes you make in the source files should be reflected in the running app while figwheel is running.
from reagent-frontend-template.
Related Issues (10)
- Figwheel Server: Resource not found HOT 1
- New project fails to compile HOT 8
- Template resource not found error HOT 2
- Running release showing warnings after using this template HOT 3
- Simplify template by removing custom handler HOT 1
- lein fighweel - fails to start HOT 2
- Blank page due to conflicting shadow-cljs >= 2.19.9 and wrap-resource (ring) call HOT 7
- Stacktrace when connecting cljs repl HOT 10
- React 18 warning HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reagent-frontend-template.