If you like to build Return from sources, you can follow the instructions below.
If using docker, simply run:
docker build -t pokertime .
- .NET Core 3.1 SDK.
- Node.js LTS or higher (Node.js 10.x is supported too).
- Yarn or higher
- Windows Powershell or Powershell 7
Environment:
- Ensure
yarn
andnode
are in yourPATH
. - Ensure
dotnet
is in yourPATH
.
For running the build script:
- Ensure the Powershell execution policy is set to RemoteSigned.
Pull the sources from this repository's home page.
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
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 of TS/JS/JSON is enforced via TSLint and Prettier. If you have run yarn
, prettier will be run as a pre-commit hook.
Both Visual Studio and Visual Studio Code work well with the project.
Recommended extensions for Visual Studio:
- ReSharper
- TSLint
- Prettier
Recommende extensions for Visual Studio Code:
- Editor support
- csharp
- Code formatting and linting
- tslint
- vscode-prettier
- vscode-status-bar-format-toggle