Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create prisma workshop #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create prisma workshop #86

wants to merge 1 commit into from

Conversation

adamdeziri
Copy link

Description

Create the prisma Workshop

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it.

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have tested this code
  • I have added sufficient documentation in the code

Additional comments

Please post additional comments in this section if you have them, otherwise delete it.

Comment on lines +12 to +13
1. Create a new folder for your project and open it in the terminal.
2. Run the following commands:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should create a SETUP.md file with the installation steps and explain a little what they do and then add a link to the actual README so they can click and go back.

Comment on lines -61 to +26
> You should see a warning message when you generate the schema.
## Step 3: Installing Prisma

If you subsequently run `npm start`, you will get a warning, which is normal. For the server to run properly, you have to add an `objectType` that defines the `Post` table in the `entities` folder.
An example of the `User` table is present in the folder, it's up to you to do `Post`.
Install Prisma as a development dependency:

> [Nexus model documentation](https://nexusjs.org/docs/plugins/prisma/overview)
```bash
npm install prisma --save-dev
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for the SETUP.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants