Skip to content

devbutant/nestjs-graphql-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

NestJS GraphQL API Template

This repository serves as a starting point for building GraphQL APIs using NestJS, a progressive Node.js framework. To use this template, follow these steps:

1. Create a New Repository:

Click on the Use this template button on this repository's GitHub page to create a new repository based on this template.

2. Clone the Repository:

Clone the repository you just created to your local machine using Git:

git clone https://github.com/your-name/your-new-repository.git

3. Install Dependencies

Use the following command to install all necessary project dependencies:

pnpm i

4. Configure Environment Variables

Copy the example .env file to create your own .env file:

cp .env.example .env

Make sure to edit the .env file to include the correct values for your environment.

5. Migrate the Database

Use Prisma to reset and apply database migrations:

pnpx prisma migrate reset

6. Start the Development Server

Run the development server with the following command:

pnpm run dev

The development server should now be running. You can access the application at http://localhost:3001.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published