@harshitpant/auto
v0.0.9
Published
Helps you automate setting up projects.
Downloads
8
Readme
@timsuchanek/auto
Helps you automate setting up projects.
Projects
Prisma
Includes the latest Prisma Client alpha with a running SQLite example. I'm using this myself a lot, to quickly get reproductions running.
This is not an official Prisma tool!
Usage
Default usage (SQLite)
mkdir test
cd test
npx @timsuchanek/auto prisma
ts-node main.ts
Postgres
mkdir test
cd test
npx @timsuchanek/auto prisma --pg DATABASE_NAME
ts-node main.ts
MySQL
mkdir test
cd test
npx @timsuchanek/auto prisma --mysql DATABASE_NAME
ts-node main.ts
Default url
If you want to set the default url use, add the following config file to ~/.autorc.json
{
"prisma": {
"postgres": "postgresql://postgres:postgres@localhost:5432/",
"mysql": "mysql://root:root@localhost:3306/"
}
}