Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 778 Bytes

Develop.md

File metadata and controls

54 lines (33 loc) · 778 Bytes

madamis

How To Develop

0 Prepare Node

Prepare Node Environment

e.g. https://nodejs.org/ https://volta.sh/

Linux(Ubuntu) installation using volta

curl https://get.volta.sh | bash

volta install node

volta install corepack

corepack enable

1 Install Dependencies

pnpm i
  • If asked to download pnpm, do so.

2 Prepare DB

To prepare the database, run the migrations

pnpm migrate

There is no data in the Users table, so add it
(Data can be freely entered)

pnpx wrangler d1 execute madamis-db --local --command "INSERT INTO Users (name, color) VALUES ('User1', '#1b7a16'), ('User2', '#bd8317');"

3 Run App

To run the App, run this command

pnpm dev

Then, you can access the App in your browser