Skip to content

mon-jai/database-project

Repository files navigation

E Shop

Setup

On a Windows machine,

  1. Install Windows Subsystem for Linux following this guide.

  2. Install Rancher Desktop

    • Choose dockerd (moby) as the Container Engine
    • Disable Kubernetes
  3. Reboot your computer

  4. Run the following commands one by one in PowerShell,

    cp .env.example .env
    docker compose create
    docker compose run node npm ci
    docker compose up --detach --wait postgres
    docker compose run node npm run build
    docker compose run node npm run seed-db

Development

In PowerShell,

$Env:NODE_ENV="development"; docker compose up

Some pre-configured accounts

  • Administrator account
    username: admin
    password: admin

  • User account with dummy data
    username: mon.jai.tw
    password: testpass

Run the app in production

  1. Replace POSTGRES_PASSWORD, IRON_SESSION_PASSWORD and PGADMIN_DEFAULT_PASSWORD with your own credentials in the .env file

  2. In PowerShell,

    docker compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published