Skip to content

tractr/traxion-examples

Repository files navigation

Stack Examples

To use this repository, follow the steps below:

Prerequisites

You need to have the following tools installed on your machine:

Installation

Clone the repository

git clone [email protected]:tractr/traxion-examples.git

Install project dependencies

npm install

Generate the required files

npx prisma generate

Create the environment file

cp .env.example .env

Launch the Docker Compose that contains the database

docker compose up -d

Setup de database

npx prisma db push
npx prisma db seed

Access

GraphQL Playground

http://localhost:3000/graphql

Api

http://localhost:3000/api

Railway

Install Railway

npm install -g @railway/cli

or

brew railway

Connect to railway

railway login

Link Railway

railway link

Add Postgres

railway add --plugin postgresql

Push Prisma schema

railway run npx prisma db push

Seed databse

railway run npx prisma db seed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published