You need to install dependencies:
Thanks for the fast reply, I guess I have to do this :
sudo add-apt-repository ppa:openjdk-r/ppa
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt update
sudo apt install -y git openjdk-11-jdk unzip nodejs
but I don't khow how to do that on windows. But I already have git, openjdk, and nodejs on my windows..
but for the npm install, I get this.
You need bash to run it.
Thanks! after installing bash following this tutorial https://itsfoss.com/install-bash-on-windows/ , now I can access traccer on my local windows.
Have a good day!
Sorry, one more thing. I am able to access the web interface at localhost:8082.
Now I am trying to access the modern interface. I change the web.path config from ./traccar-web/web to ./traccar-web/modern
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='config.default'>./setup/default.xml</entry>
<entry key='web.path'>./traccar-web/modern</entry>
<entry key='web.debug'>true</entry>
<entry key='web.console'>true</entry>
<entry key='logger.console'>true</entry>
<entry key='database.driver'>org.h2.Driver</entry>
<entry key='database.url'>jdbc:h2:./target/database</entry>
<entry key='database.user'>sa</entry>
<entry key='database.password'></entry>
<entry key='atrack.custom'>true</entry>
<entry key='intellitrac.port'>6037</entry>
</properties>
here is what I get now..
What am I missing?
Have you compiled it?
in modern folder here what I did :
$ npm run build
.....
.....
.....
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
serve -s build
Find out more about deployment here:
bit.ly/CRA-deploy
It is still 403 forbidden..
and I also did this.
$ serve -s build
Serving! │
│ │
│ - Local: http://localhost:3000 │
│ - On Your Network: http://192.168.100.84:3000 │
│ │
│ Copied local address to clipboard!
it only shows blank page when I access localhost:3000, with this error on browser console
logger.mjs:44 workbox Precaching is responding to: /static/css/main.19c2b201.chunk.css
logger.mjs:44 workbox Precaching is responding to: /static/css/2.e7e1d566.chunk.css
logger.mjs:44 workbox Precaching is responding to: /static/js/2.25d7e9e1.chunk.js
logger.mjs:44 workbox Precaching is responding to: /static/js/main.d64584f3.chunk.js
serviceWorker.js:44 This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA
VM71:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
7Fetch finished loading: GET "<URL>".
at http://localhost:8082 it is still forbidden
Hello Anton Tananaev!
we have struggle this process Kindly share reference video for local deployment
Are you happy to sponsor the work of preparing the video?
what kind of sponsors are need for preparing the video?
If you're interested in sponsoring the work, send us an email.
we are interest
Hello again, glad to say that I already successfully setup the traccar on my VPS. But now I need to modify the login page on the web interface. So I tried to setup the project on my Windows 10 localhost. Here are what I did :
https://imgur.com/85BWD6h
https://imgur.com/HoMI6nJ
5 . Finally i tried to access the web interface from browser
https://imgur.com/rsp6hH4
What did I miss? Please assist me, thanks in advance for the great project!