Go to backend/docker
and run docker-compose up -d
to setup and launch a postgresql db and pgadmin.
You can see more details here to setup with pgadmin.
Connect to the database and create drivers table, run psql -h 127.0.0.1 -p 5432 -d postgres -U admin -f backend/sql/drivers.sql
,
You can look at the directory backend/sql/
for create the mandatory schema for the app.
Go to backend
, run cargo run
and connect to http://localhost:8000/
Go to app-electron
, run npm start
You need to have install:
node
, with wsl2 follow steps hereelectron
, with wsl2 you have to install VcXsrv Windows X Server, for install help here and config bashrc herewasm-pack
follow steps here
You need to create:
app-electron/dist
and create a fileindex.html
which contains a basic skeleton:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Webpack App</title>
<meta name="viewport" content="width=device-width, initial-scale=1"></head>
<body>
<script src="bundle.js"></script></body>
</html>