Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.73 KB

PROJECT_README.md

File metadata and controls

78 lines (52 loc) · 1.73 KB

A public registry of Nix flakes aiming to supersede search.nixos.org.

Built using elm.land and Axum.

Maintainers:

Development

Prerequisites

You will need the following tools to build and run the project:

Setup

JavaScript

Install JavaScript dependencies:

npm install

Postgres

Launch a postgres instance and create the database:

docker run --name flakestry-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres

Create the database and run the migrations:

DATABASE_URL=postgres://localhost:5432/flakestry sqlx database setup

OpenSearch

Launch an OpenSearch instance:

docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" opensearchproject/opensearch:latest

Caddy

Launch the Caddy server:

caddy run

Run the backend

cd backend && cargo run

Run the frontend

cd frontend && elm-land server