https://github.com/ndom91/nextjs-prisma-gql-ts-starter
🚧 Fullstack React starter with my preferences
https://github.com/ndom91/nextjs-prisma-gql-ts-starter
fullstack graphql nextjs starter template typescript urql
Last synced: 3 months ago
JSON representation
🚧 Fullstack React starter with my preferences
- Host: GitHub
- URL: https://github.com/ndom91/nextjs-prisma-gql-ts-starter
- Owner: ndom91
- Created: 2021-04-17T00:26:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-17T00:33:38.000Z (over 5 years ago)
- Last Synced: 2024-10-05T17:23:07.253Z (almost 2 years ago)
- Topics: fullstack, graphql, nextjs, starter, template, typescript, urql
- Language: TypeScript
- Homepage:
- Size: 229 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fullstack Next.js Starter
This is a full-stack Next.js application starter built with Typescript, Prisma, apollo-server-micro, and urql on the frontend.
## 🎉 Getting started
1. Clone repo `git clone https://github.com/ndom91/nextjs-prisma-gql-ts-starter`
2. Install dependencies `cd nextjs-prisma-gql-ts-starter && npm install`
3. Copy the `.env.example` and create your own `cp .env.example .env`
4. Fill in the variables like `DATABASE_URL` to match your environment
5. Start the application `npm run dev`
### 🗄 Create the database
Run the following command to create your PostgreSQL database. This also creates the required tables that are defined in [`prisma/schema.prisma`](./prisma/schema.prisma) as well as the initial migration:
```
npx prisma migrate dev --name init
```
It will connect to the database defined in your `DATABASE_URL` in your `.env` file and create the appropriate tables, columns, etc.
## 📋 License
[`MIT`](https://opensource.org/licenses/MIT)