MAL Chord is an interactive web-app that allows users to visualise their MyAnimeList library.
The application has been built as a single-page Preact project which communicates with a Node.js, Express API.
To run the project locally, you will need to obtain your own client credentials through MyAnimeList (see Step 0 of this blog post for a guide on how to do this). During this process, you will be prompted to enter app information - the below values can be used:
| Field | Value |
|---|---|
| App Redirect URL | http://localhost:5173 |
| Homepage URL | http://localhost:5173 |
| App Logo URL | http://localhost:8080/chord-logo |
- Add your MAL Client ID/Secret values generated above to a
.envfile at the root of the project (use/copy the.env.examplefile). - Run
docker-compose up --build -d - Once the build completes, MAL Chord will run at http://localhost:5173
- cd into the
appdirectory - Add your MAL Client ID/Secret values generated above to a
.envfile (use/copy the.env.examplefile) - Run
yarnto install - Run
yarn startto run MAL Chord will at http://localhost:5173
The following other commands can be run in the project:
yarn dev- Runs the application in development mode (on port 5173)yarn build- Builds the application for production to thebuildfolderyarn preview- Serves the production build locally (on port 4173)
- cd into the
apidirectory - Add your MAL Client ID/Secret values generated above to a
.envfile (use/copy the.env.examplefile) - Run
yarnto install - Run
yarn startto run MAL Chord will at http://localhost:5173
The following other commands can be run in the project:
yarn dev- Utilises nodemon to run the application in watch mode
This site was originally deployed via Amazon services at mal-chord.com, however has been retired as of 20/08/2022 due to my free-tier of the Amazon services expiring. See below for an overview of the services that I utilised to get this running:
- Amplify for Preact client
- Elastic Beanstalk for Node.JS server
- Route 53 to allow server to be accessed via
api.mal-chordURL prefix
