Go to file
ideclon c09470ca9a
add README
2022-12-22 23:59:40 +00:00
css inital commit - sign in to mastodon 2022-11-29 21:30:09 +00:00
js add local links 2022-12-20 02:46:27 +00:00
template iframes 2022-12-20 00:07:19 +00:00
README.md add README 2022-12-22 23:59:40 +00:00
connect.php inital commit - sign in to mastodon 2022-11-29 21:30:09 +00:00
index.php start suggestions page 2022-12-19 23:21:09 +00:00
login.php cleanup + js modules 2022-11-30 20:46:02 +00:00
redirect.php git modules 2022-12-04 20:42:44 +00:00
suggestions.php start suggestions page 2022-12-19 23:21:09 +00:00

README.md

Mastodon Algorithm - Frontend / Client

This repo contains the frontend for ideclon's Mastodon Algorithm project.

This project relies on AppWrite. You must have an AppWrite instance to run this project

Deploy frontend

The frontend currently requires PHP, which is solely used for templating, because I know PHP. I plan to replace it with some templating language which will compile to plan HTML at some point.

Connect to Appwrite

Navigate to your Appwrite instance's UI. Go to Overview > Integrations. Select the Platforms tab and click "Add Platform". Select "Web App" from the dropdown.

Enter a name (this can be whatever you want) and enter the URL of the frontend. Click Next, then Skip optional step.

You'll need to set the following enviroment vars for this project. Alternatively, you could fill in the required variables in template/footer.php.

  • APPWRITE_ENDPOINT: You can find this at Settings > API Credentials > API Endpoint
  • APPWRITE_PROJECT_ID: You can find this at Settings > API Credentials > Project ID
  • APPWRITE_DB_ID: You'll need this from when you set up the server components

Create a user

There's currently no way to create a user from the frontend. You'll need to do so from the Appwrite UI at Auth > Create User.