Skip to content

Wingjam/AirTransitServer--E2E-Encrypted-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirTransitAPI--E2E-Encrypted-Chat

An End-to-End Encrypted Chat API for a university project.
When running, the app can be accessible to http://*:5000.

Ex. :
Locally : http://localhost:5000
Same LAN : http://192.168.0.2:5000
Remotely : http://MyDNS:5000

How to run the app locally (with Visual Studio)

  • Open the solution (.sln) with Visual Studio
  • Edit the launch settings under AirTransitServer/Properties/launchSettings.json
  • Launch the app, press F5

How to publish and run the app

Prerequisite : you need .NET Core 2.0 SDK on your machine -> Installation instructions.

Publish via Visual Studio :

  • Right click on the project, then click Publish...
  • Choose a target folder location (i.e. bin\Release\PublishOutput)
  • Click Publish

Publish via command line :

Finally, to run the application go to the output publish folder with a command prompt and run dotnet AirTransitServer.dll. 🎉

Migrations

Migrations provide a way to incrementally apply schema changes to the database to keep it in sync with your EF Core model while preserving existing data in the database.

Every time a model is modified, a migration should be created to apply new changes to the database.

Here is a summary list of commands that can be used for migrations :

PowerShell or Package Manager Console Command Prompt Additional Information
Add-Migration {name} dotnet ef migrations add {name}
Remove-Migration dotnet ef migrations remove Removes the last migration.
Update-Database dotnet ef database update Use -Migration '0' to revert all migrations.
Drop-Database dotnet ef database drop
Complete documentation Complete documentation

Technology Stack

About

An End-to-End Encrypted Chat API for a university project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages