Skip to content

scott306lr/MoVis_Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DVVA_Final-Project

[111 Fall] Data Visualization and Visual Analytics Final Project

Group Member:

  • 0716021 張家豪
  • 0816137 王培碩
  • 0816153 陳琮方

How to start MoVis on your local machine

  1. Clone the repository, go to the movis folder

    git clone https://github.com/andy89923/DVVA_Final-Project
    
    cd DVVA_Final-Project/movis
  2. Set environment variables:

    cp .env.example .env
    #modify .env to connect to db afterwards if needed
  3. Install dependencies:

    pnpm install
  4. Start development server:

    pnpm dev

How to generate connection with the database:

Modify ${DATABASE_URL} inside .env :

DATABASE_URL='mysql://[email protected]:3309/movis-app'

Prisma reads schema and generate the correct data source client code (for code autocomplete):

pnpm prisma generate

Create connection with PlanetScale's database on localhost:3309 : Instructions for downloading pscale

# Switch organization
pscale org switch <ORGANIZATION_NAME>  # pscale org switch movis

# Connect to database locally
pscale connect <DATABASE_NAME> main --port 3309 # pscale connect movis-app main --port 3309

# (Optional) Check database with CLI
pnpm prisma studio