paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
687 stars 55 forks source link

Error: pal config file is not found #314

Closed cesarvspr closed 1 year ago

cesarvspr commented 1 year ago

I dont see docs about this config file. How can I pass config file to thepag g command?

I just want to create models for my prisma files.

cesarvspr commented 1 year ago

Ok, I had to create a new project and copy and copy and paste my prisma schema to the just created project.


pal create

.______      ___       __             __       _______.
|   _  \    /   \     |  |           |  |     /       |
|  |_)  |  /  ^  \    |  |           |  |    |   (----`
|   ___/  /  /_\  \   |  |     .--.  |  |     \   \
|  |     /  _____  \  |  `----.|  `--'  | .----)   |
| _|    /__/     \__\ |_______| \______/  |_______/

✔ Please select your start example · apollo-nexus-schema
✔ please enter your project name · api
✔ please enter your project description · 
✔ please enter your project author · 
✔ please enter your project repository · 
✔ Do you need to use Git · yes
✔ please select your package manager · yarn
✔ Skip package installation · yes

Hang tight while we set up your great new app!

create .gitignore
create README.md
create package.json
create pal.config.js
create .env
create schema.prisma
create context.ts
create index.ts
create nexusSchema.ts
create server.ts
create tsconfig.json

✔ Retrieving the freshest of dependencies

Your new great app is ready! Next steps:

Go inside your project folder

> cd api

Please open README.md file and go with steps

then:


 pal g
✔ Generating your files