/minesweeper.z.ts

Primary LanguageSvelteMozilla Public License 2.0MPL-2.0

Minesweeper Game

MPL-2.0. See LICENSE. Iván Molina Rebolledo.

For some "Programación de Aplicaciones Web" course, autumn 2023.

Instructions

Use Nix

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Install the dependencies

nix profile install nixpkgs#direnv
nix profile install nixpkgs#git

Enable direnv

direnv allow

Edit the .env

cp .env-sample .env
vim .env
direnv allow

Setup the database

npm run new-db

Run the db

npm run start-db

Run the migrations

dbmate create
dbmate up

Compile the javascript

npm run build

Run the server with php

npm run php

New migrations

dbmate new <name>