The server code is located in the Xpense Server
directory.
Before starting it you might want to change the variables in the "Xpense Server"/.env
file.
To start the server locally, run following command:
cd Xpense Server
to go to the server code directoryvapor run migrate
to migrate the database (only needs to be done once)vapor run serve
to start the server
To start the server with Docker you can run the following commands:
cd Xpense Server
to go to the server code directorydocker compose build app
to build the vapor applicationdocker compose up -d
to start the database and vapor applicationdocker compose run migrate
to migrate the database (you have to wait until the database is availabe)docker compose logs -f
to see the output of all servicesdocker compose logs -f app
to see only the output of the vapor applicationdocker compose down
to stop all services