An analysis of recessionary indicators written in Rust & TypeScript
fred_key
must be set in Config.toml
. You'll need to request an API Key in order to access FRED. This can be done at https://fred.stlouisfed.org/docs/api/api_key.
fred_key=abcdefghijklmnopqrstuvwxyz123456
First, you need to download and install the Rust compiler.
Then, once that's installed, you can compile the api.
cd api
cargo build --release or cargo run # for debug mode
Run the development server
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.ts
. The page auto-updates as you edit the file.