Magnetissimo هو تطبيق ويب مستضيف ذاتيًا يفهرس جميع مواقع التورنت الشهيرة ويحفظ روابط المغناطيس لقاعدة البيانات المحلية الخاصة بك.


نريد أن نشرح كيفية تشغيل Magnetissimo على:
Docker Compose
# Generate a secret_key with either
openssl rand -base64 64
mix phx.gen.secret
# Enter that key as SECRET_KEY_BASE in the docker-compse.yml file
SECRET_KEY_BASE=YourKeyGoesHere
# Start the application
docker compose up -d
إذا كنت ستصل إلى Magnetissimo على عنوان إلى جانب localhost ، فأضف PHX_HOST إلى متغيرات البيئة الخاصة بك. على سبيل المثال ، للوصول إليه على http://192.168.0.54:4000 :
- PHX_HOST=192.168.0.54
أو للوصول إليه في https://magnetissimo.domain.tld :
- PHX_HOST=magnetissimo.domain.tld
Kubernetes
# Generate a secret_key with either
openssl rand -base64 64
mix phx.gen.secret
Edit the k8s/deployment.yaml file, and replace the ENV SECRET_KEY_BASE with your generated key.
Edit k8s/ingress.yaml & the PHX_HOST in k8s/deployment.yaml and replace the host with your domain name.
The Postgres database is configured to use the DNS name assuming it is being deployed to the default namespace, update this in the enviroment variables if you are deploying to a different namespace.
Finaly, deploy the application to your cluster.
kubectl apply -f k8s/pvc.yaml
kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/svc.yaml
kubectl apply -f k8s/ingress.yaml
التنمية المحلية
asdf install
mix deps.get
iex -S mix phx.server
ثم قم بزيارة: http: // localhost: 4000
جميع نقاط النهاية إرجاع معلومات تنسيق JSON.
/search : http: // localhost: 4000/api/search/: search_term
يقوم البحث بإرجاع السيول التي تتطابق مع search_term param.
/latest نقطة نهاية: http: // localhost: 4000/API/أحدث
أحدث إرجاع أحدث 50 تم نشره في السيول.
لدينا .tool-versions
elixir 1.14.4
nodejs 19.8.1
ثم asdf install .
تحتاج أيضًا إلى تشغيل Postgres وتكوينه باستخدام متغير بيئة DATABASE_URL .
أخيرًا قم بإعداد قاعدة البيانات الخاصة بك مع بعض البيانات الوهمية وقم بتشغيل المشروع.
mix deps.get
mix ecto.reset
iex -S mix phx.serverهل تريد التحدث عن Magnetissimo أو اقتراح ميزات؟ لدينا خادم خلاف رسمي.
انقر للانضمام إلى خادم Discord الرسمي