Skip to content

nau/scalus-starter

Repository files navigation

Scalus Starter Project

This is a starter project for Scalus - Scala-based DApps development platform for Cardano.

It contains a simple example of a Minting Policy script written using Scalus.

Getting Started

Prerequisites

You'll need Java JDK 11+, scala-cli or sbt.

If you use Nix, you can run nix develop to get a shell with all the dependencies.

Setup IntelliJ IDEA

File -> New -> Project from Existing Sources -> select the project directory -> Import project from external model -> BSP -> Sbt

Building with sbt

Run sbt to enter the sbt shell.

Run compile to compile the project.

Run test to run the tests.

Run integration/test to run the integration tests.

Run scalafmtAll to format the code.

Setup Yaci Devkit for integration tests

Follow instructions from the Yaci Devkit to setup the devkit.

Create and run a local Cardano node with the devkit:

devkit
> create-node
> start

Resetting the local Cardano node

If you need to reset the local Cardano node, you can run:

reset

in the devkit shell.

Building with scala-cli

Run scala-cli setup-ide . to generate IDE configuration files.

Run scala-cli . to compile and run the project.

Run scala-cli test . to run the tests.

Scalus Tutorial

Read the tutorial

Resources

Scalus official website: https://scalus.org

Find more information about Scalus in the Scalus repository.

Scalus Discord: https://discord.gg/ygwtuBybsy

Twitter: @Scalus3

About

Scalus Starter project

Resources

Stars

Watchers

Forks

Packages

No packages published