Required:
MySQL 8 or MariaDB 10
Visual Studio 2022 with ASP.NET and web development packages
CREATE DATABASE contactsnet;
Within /api directory copy .env.example and set the DB connection string
Within /api directory run:
$ dotnet ef database update
Start API using Visual Studio "Start Debugging" button
Within /frontend-contacts run the following commands:
$ npm install
$ npm run dev
After the application starts, navigate to http://localhost:5173/register
in your web browser
-
Follow instructions in rahmedd/infra repo to setup base production environment and deploy
-
Set production .env vars
-
Create migration script using
dotnet ef migrations script -o ./init.sql
-
Configure DB using SSH
a. Create database
b. Run init.sql script on database -
Use docker contexts to deploy:
$ docker context create --docker "host=ssh://[email protected]" prod
$ docker context use prod
$ docker compose up --build
After the application starts, navigate to http://mydomain.test
in your web browser