Skip to content

Latest commit

 

History

History
79 lines (45 loc) · 2.13 KB

Building-from-sources.md

File metadata and controls

79 lines (45 loc) · 2.13 KB

Building Return from sources

If you like to build Return from sources, you can follow the instructions below.

Docker

If using docker, simply run:

docker build -t pokertime .

Prequisites

Additional prequisites on Windows

  • Windows Powershell or Powershell 7

Additional prequisites on Linux (Ubuntu)

Environment:

  • Ensure yarn and node are in your PATH.
  • Ensure dotnet is in your PATH.

For running the build script:

  • Ensure the Powershell execution policy is set to RemoteSigned.

Check-out

Pull the sources from this repository's home page.

Building

Use the build script in the root to build the application:

build

To create a deployment to one of the supported platforms:

build -Target Publish

The results will be emitted in the build/publish folder. For additional supported command line parameters run:

build -h

Development

After you've build the application once you can start developing.

To develop, just run the application using dotnet run.

If you have not created a database yet, please run build -Target Generate-MigrationScript to generate a migration script and run it on a local database. The application will also attempt to seed the database with some base data.

Code style and linting

Code style and linting of TS/JS/JSON is enforced via TSLint and Prettier. If you have run yarn, prettier will be run as a pre-commit hook.

Editors

Both Visual Studio and Visual Studio Code work well with the project.

Recommended extensions for Visual Studio:

Recommende extensions for Visual Studio Code:

  • Editor support
    • csharp
  • Code formatting and linting
    • tslint
    • vscode-prettier
    • vscode-status-bar-format-toggle