Backend service for soğan sözlük project.
Clone the project and navigate to the project directory.
$ git clone https://github.com/sogan-sozluk/arpacik
$ cd arpacikCreate a environment file and fill the required fields.
$ cp example.env .envHOST=127.0.0.1 # Host address
PORT=8099 # Port number
DATABASE_URL='postgres://arpacik:GRoButChN43Wrzt5IXs6hBzLGtFKnRxz@localhost:5499/sogan' # Database URL
DATABASE_SCHEMA='arpacik' # Database schema
JWT_SECRET='VcHCJhYoXGGL7awzIL6woA==' # JWT secret
AUTH_FROM='authorization' # Authorization header. 'cookie' or 'authorization'Create development database and run the migrations.
$ docker compose up -d
$ cd migration
$ cargo runRun the project.
# Navigate to the project directory and run the project.
$ cargo runThe API documentation is available as a Postman collection here. You can use cookie header for authentication.