opensanctions / site

This repository is no longer maintained. The web site now contains billing mechanisms etc. which makes it hard to maintain as an open source project.
https://www.opensanctions.org
6 stars 3 forks source link

Site

This Next.js app constitutes the frontend of the OpenSanctions.org website.

Please, note that it runs the latest released version Next.js 13.

Getting Started

Installation

The requirement for running a Next.js 13 app is having Node.js 16.8.0 (or newer) installed.

Notes:

1- Clone this repository

git clone git@github.com:opensanctions/site.git

2- Install the dependencies by running:

npm install

Running the app locally

1- Set up environment variables (they're listed in /lib/constants.ts). To make a search on your local website, you need to set an API_TOKEN var and assign it your API key. This is the only env var to set up if you plan to use the Opensanctions production API (https://api.opensanctions.org).

2- Run the development server:

npm run dev

3- Open http://localhost:3000 in your browser to see the website.