Professional real estate agent website
- Frontend web-app written in Svelte
- Backend REST API written in Rust using Rocket web framework and Diesel ORM
- Multi-threaded filewatcher written in Rust using Notify crate
cd backend
- Create an
env.sh
file using theenv.example.sh
template - Source the
env.sh
file - Spin up a postgres docker container using the configured env variables
make setup make db
- Compile and start the REST API service:
make run_api
cd frontend
- Install dependencies:
pnpm i
- Start the development server:
pnpm dev
cd backend
- Source the
env.sh
file - Create a watch directory for the filewatcher to inspect (or use an existing directory)
mkdir .watchdir
- Compile and start the filewatcher service:
make run_fw
- Create a Centris
.zip
archive file in the.watchdir
I've setup github actions that build and push docker images to the public docker registry at namespace 1930414
- On push to branch
develop
, I run tests on both the backend and frontend services - On push to branch
main
, I build and push docker images for:
I use the following setup by @woollysammoth to handle ssl certificates and docker images on my production server. I also setup a postgres instance on the host machine instead of using docker for security and maintenance advantages.