api used for my website
Find a file
2024-01-01 17:18:08 +01:00
src Added error 501 2024-01-01 17:18:08 +01:00
.env-TEMPLATE something 2023-12-05 00:41:19 +01:00
.gitattributes Initial commit 2023-02-01 20:17:57 +01:00
.gitignore something 2023-12-05 00:41:19 +01:00
Cargo.lock some updates 2023-12-13 04:19:04 +01:00
Cargo.toml some updates 2023-12-13 04:19:04 +01:00
config.toml some updates 2023-12-13 04:19:04 +01:00
README.md Fixed typo 2023-12-16 05:26:43 +01:00

jonas_jones-api

API supporting the Jonas_Jones project infrastructure.

Installation

As of now, the project has no proper production build and unless the proper environment variables are set, the API will not work.

Clone the repository and install the dependencies.

$ git clone git@github.com:J-onasJones/jonas_jones-api.git
$ cd jonas_jones-api
$ cargo build

Usage

To run the API, simply run the following command.

$ cargo run

If you want to run the API in a production environment, you will need to set the following environment variables.

  • API_PORT
  • API_IP
  • LASTFM_API_KEY
  • LASTFM_API_SECRET
$ export API_PORT={port}
$ export API_IP={ip_address}
$ export LASTFM_API_KEY={lastfm_api_key}
$ export LASTFM_API_SECRET={lastfm_api_secret}