/flitz

The Fullstack Miniblog System - built on Blitz.js

Primary LanguageTypeScript

This is a Blitz.js app.

FLITZ

Getting Started

Make env file and run PostgreSQL by using Docker.

% docker-compose up -d

Install Node.js modules.

% yarn

Migrate PostgreSQL schemas.

% yarn prisma db push --preview-feature

Run your app in the development mode.

% yarn start

Open http://localhost:3000 with your browser to see the result.

Environment Variables

Ensure the .env.local file has required environment variables:

DATABASE_URL="postgresql://postgres@localhost:5432/app"
POSTGRES_HOST_AUTH_METHOD=trust

Ensure the .env.test.local file has required environment variables:

DATABASE_URL="postgresql://postgres@localhost:5432/test"

Ngrok

$ ngrok http -hostname=flitz.ngrok.io 3000

Tests

Runs your tests using Jest.

% yarn test

Blitz comes with a test setup using Jest and react-testing-library.

Learn more

Read the Blitz.js Documentation to learn more.