Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Next TypeScript Prisma PostgreSQL

License

NotificationsYou must be signed in to change notification settings

juancarlosjr97/next-typescript-prisma-postgresql

Repository files navigation

Development

This project is to demonstrate how to setup a project usingNext.js with TypeScript as a web application with Prisma as the ORM using PostgreSQL v15 as the data source as a Full Stack Web App.

Prerequisites

The following services are require for development:

Project Setup

Dependencies

  1. Fork the project and clone your GitHub project

    git clone https://github.com/${USER_NAME}/quick-id-verification
  2. Install node and npm version of the project

    nvm usenpm install -g npm@${NPM_VERSION}
  3. Install project dependencies

    npm ci
  4. Copy.env

    cp .env-local .env

Start Database

  1. Start the database using Docker

    npm run docker
  2. Import migration to Database

     npm run prisma:deploy

The command will import the migrations created to the database.

Start the Next app

  1. Start the Next app

    npm run dev

The app will be running on the port3000 and accessible inhttp://localhost:3000

Test

To run tests is required to have the web app running.

  1. Run unit and E2E tests

    npm runtest
  2. Run coverage check

    npm run test:coverage:check

Development with Codespaces

The app has a predefined Codespaces configuration available at.devcontainer/devcontainer.json as this web app has been developed using Codespaces.

Follow thisguide on how to get started with Codespaces.

Acknowledgment

The project has been inspired on aPrisma example.

License

This project is licensed under the MIT License. See theLICENSE file.

About

Next TypeScript Prisma PostgreSQL

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp