Skip to content

Backend API project built for RealEstateApp & SvelteRE with CRUD operations, user authentication and image uploads.

Notifications You must be signed in to change notification settings

akifisitan/RealEstateApp.Api

Repository files navigation

Real Estate App Api

Usage

  1. Setup Docker

  2. Create a new file called .env and copy the contents of example-env into it or simply rename env.example to .env

  3. Open up a terminal in this directory and build the web api image

docker build -t realestateapp-api .
  1. Create and run the containers
docker compose up

Info

  • The app will automatically apply migrations and seed the database if the ApplyMigrationsOnBoot environment variable is set to "Y"
  • Connection strings, passwords and default admin credentials can be set via the .env file.

Development

Add migrations via the package manager console

Add-Migration -Context RealEstateContext version_name
Add-Migration -Context RealEstateIdentityContext version_name

Apply the migrations to the database

Update-Database -Context RealEstateContext
Update-Database -Context RealEstateIdentityContext

About

Backend API project built for RealEstateApp & SvelteRE with CRUD operations, user authentication and image uploads.

Topics

Resources

Stars

Watchers

Forks