[111 Fall] Data Visualization and Visual Analytics Final Project
- 0716021 張家豪
- 0816137 王培碩
- 0816153 陳琮方
-
Clone the repository, go to the movis folder
git clone https://github.com/andy89923/DVVA_Final-Project cd DVVA_Final-Project/movis
-
Set environment variables:
cp .env.example .env #modify .env to connect to db afterwards if needed
-
Install dependencies:
pnpm install
-
Start development server:
pnpm dev
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