Skip to content

The Feed App Boilerplate - built on Blitz.js

Notifications You must be signed in to change notification settings

shigurenimo/flitz

Repository files navigation

FLITZ

Deploy on Railway

Getting Started

Make env file and run PostgreSQL by using Docker.

% docker-compose up -d

Install Node.js modules.

% yarn install

Migrate PostgreSQL schemas.

% yarn prisma db push

Run your app in the development mode.

% yarn dev

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"

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.

Languages