-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: move contributor-related info to the contributor guide
- Loading branch information
Showing
6 changed files
with
82 additions
and
79 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Contributor Guide | ||
================= | ||
|
||
Prerequisites | ||
------------- | ||
To develop Emulsion, make sure you've installed the following tools: | ||
- [.NET SDK][dotnet] 8.0 or later, | ||
- [Node.js][node.js] 18: | ||
- if you use [nvm][] or [nvm-windows][], then run `nvm use 18`. | ||
|
||
Build | ||
----- | ||
Build the project using the following shell command: | ||
|
||
```console | ||
$ dotnet build | ||
``` | ||
|
||
Run | ||
--- | ||
Run the application from sources using the following shell command: | ||
|
||
```console | ||
$ dotnet run --project ./Emulsion [optional-path-to-json-config-file] | ||
``` | ||
|
||
Test | ||
---- | ||
Execute the tests using the following shell command: | ||
|
||
```console | ||
$ dotnet test | ||
``` | ||
|
||
Docker Publish | ||
-------------- | ||
To build and push the container to Docker Hub, use the following shell commands: | ||
|
||
```console | ||
$ docker build -t codingteam/emulsion:$EMULSION_VERSION \ | ||
-t codingteam/emulsion:latest . | ||
|
||
$ docker login # if necessary | ||
$ docker push codingteam/emulsion:$EMULSION_VERSION | ||
$ docker push codingteam/emulsion:latest | ||
``` | ||
|
||
where `$EMULSION_VERSION` is the version of the image to publish. | ||
|
||
Updating the Database Structure | ||
------------------------------- | ||
If you want to update a database structure, you'll need to create a migration. | ||
|
||
This article explains how to create a database migration using [EFCore.FSharp][efcore.fsharp]. | ||
|
||
1. Change the entity type (see `Emulsion.Database/Entities.fs`), update the `EmulsionDbContext` if required. | ||
2. Run the following shell commands: | ||
|
||
```console | ||
$ dotnet tool restore | ||
$ cd Emulsion.Database | ||
$ dotnet ef migrations add <migration-name> | ||
``` | ||
|
||
[dotnet]: https://dot.net/ | ||
[efcore.fsharp]: https://github.com/efcore/EFCore.FSharp | ||
[node.js]: https://nodejs.org/ | ||
[nvm]: https://github.com/nvm-sh/nvm | ||
[nvm-windows] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.