@harshitpant/auto

0.0.9 • Public • Published

@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/"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @harshitpant/auto

Weekly Downloads

7

Version

0.0.9

License

MIT

Unpacked Size

77.1 kB

Total Files

11

Last publish

Collaborators

  • pantharshit00