Prerequisites: Ubuntu, Git, Maven3, Tomcat 9
-
git clone https://github.com/wladOSnull/Geocit134.git; cd Geocit134
-
in config file
~/Geocit134/src/main/resources/application.properties
you might want to edit following propertiesfront.url
- front urldb.url
- db uri (db must be created manually)db.username
&db.password
- db credentials
-
mvn install && mv target/citizen.war /usr/share/tomcat9/webapps/ && /usr/share/tomcat9/bin/startup.sh
if you want to make changes to frontend
you have to cd to ~/Ch-058/front-end
dir and run npm run dev
after successful execution you'll see url.
to generate the production build you have to
- replace url with tomcat's url (e.g.
'http://localhost:8080/citizen'
) in~/Ch-058/front-end/src/main.js
- run
npm run build
, move all files from~/Ch-058/front-end/dist
to~/Ch-058/src/main/webapp
- in
~/Ch-058/src/main/webapp/index.html
put dots (ha-ha) on lines- after
<link href=
- after
<script type=text/javascript src=
- after
- then repeat 3rd step of
build and deploy