Hack-The-Tunnels-8 / hack-the-tunnels-soja

hack-the-tunnels-soja created by GitHub Classroom
0 stars 0 forks source link

Hack The Tunnels - Starter

Hack The Tunnels

This is the project template for Hack The Tunnels.

The project template utilizes React, TypeScript, Express, and Prisma.

Project Setup

Before you can set up the project, you will need to install Node.js.

To get the project working, you will need to have both the client and server running.

Client Setup

  1. Move into the client directory
cd client
  1. Install client dependencies
npm install
  1. Copy .env.sample

Create a copy of the .env.sample file and rename the file's name to .env.

  1. Run the client
npm run dev

Service Setup

  1. Move into the service directory
cd service
  1. Install service dependencies
npm install
  1. Copy .env.sample

Create a copy of the .env.sample file and rename the file's name to .env.

  1. Run Migrations
npx prisma migrate dev
  1. Add the Seed Data
npx prisma db seed
  1. Run the service
npm run dev

Important Files and Folders

Client

Service

Key Words

Product

Order

Line Item

Customer

Account

Glossary

More Useful Commands

Open Prisma Studio

Prisma Studio is the easiest way to explore and manipulate your data in all of your Prisma projects.

npx prisma studio