https://github.com/fluffyspectre/daily-algorithm-website
Website to present a useful algorithm every day
https://github.com/fluffyspectre/daily-algorithm-website
nodejs python web
Last synced: about 2 months ago
JSON representation
Website to present a useful algorithm every day
- Host: GitHub
- URL: https://github.com/fluffyspectre/daily-algorithm-website
- Owner: FluffySpectre
- Created: 2024-07-20T08:29:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T04:01:11.000Z (over 1 year ago)
- Last Synced: 2025-02-10T04:29:10.463Z (over 1 year ago)
- Topics: nodejs, python, web
- Language: PHP
- Homepage: https://daily-algorithm.com
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# daily-algorithm-website
Link: **[https://daily-algorithm.com](https://daily-algorithm.com)**
## What it does
Every day, an LLM selects and features an interesting algorithm on the website that developers should know about.
## Prerequisites
- Local ollama installation or Groq API key
- Python >=3.12
- NodeJS >= 20
## Setup
### Algorithm generator
1. Open a terminal and switch into the "generator" directory.
2. Run:
```sh
pip install -r ./requirements.txt
```
3. Duplicate the **.env.example**-file and rename it to **.env**.
4. Open the **.env**-file and adjust the settings.
5. Complete! Now you can run the algorithm generator:
```sh
python daily_algorithm.py
```
### Website server
1. Open a terminal and switch into the "server" directory.
2. Run:
```sh
npm install
```
3. Run:
```sh
node app.js
```
4. Open a webbrowser and enter:
```
http://localhost:3000
```