Running Traccar locally with sencha

ss884 years ago

So i download the web version of Traccar and try to run it on my local computer. under Root folder and under Web folder i run the command : sencha web start and then try to access the release.html with the URL localhost:1841/release.html but i got an error :

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
Error 404 Not Found
</head>
<body>HTTP ERROR 404
<p>Problem accessing /api/server. Reason:
    Not Found</p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                                                       
</body>
</html>

Any clue what this might be caused by ?

Thanks.

Anton Tananaev4 years ago

It looks like you are trying to run web app without Traccar itself (which provide the API), which obviously won't work.

ss884 years ago

How to include the traccar server then please ? or how to run the whole web+server with commands ? thanks !

Anton Tananaev4 years ago

I would recommend using IntelliJ for development environment. Read following documentation:

https://www.traccar.org/build/
https://www.traccar.org/build-in-intellij-idea/

ss884 years ago

So i build the traccar server and create the .jar file but then i didn't get how to proceed on how to build the interface with option 1 e.g :

Upload new files into the server web folder and use debug.html to load non-compressed version of the web interface
Anton Tananaev4 years ago

I never used VSCode for Java code, but I'm sure there is some way to do it. If you don't want to follow our recommendations, then you are on your own.

ss884 years ago

Alright for Intellij, please see edited above reply

Anton Tananaev4 years ago

Please read the documentation and follow the instructions. You also seem to be mixing up development process and deployment. I would recommend you to take your time and understand the system and the instructions first before asking for further help.

ss884 years ago

Why i use VSCode is that i want to debug the web interface of traccar while checking traccar server vars values with the VSCode (if that's possible). So the first thing i want to do is to bring the web version of traccar in my VSCode (for debugging) and launch it with the server traccar (and avoid the api/server access error)

Any clue how to do it ?
PS : by the way it is a pleasure talking to you.

ss884 years ago

I actually went through your tut and was able with Intellij to run the server so thanks !

Carlos Mukoyi2 years ago

did you get vscode to work?
How