This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 78da376
Showing
221 changed files
with
78,649 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Run Test | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.env | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
run = "nix-shell build.nix" | ||
entrypoint = "index.js" | ||
|
||
language = "nodejs" | ||
|
||
[nix] | ||
channel="stable-21_11" | ||
|
||
[packager] | ||
language = "nodejs" | ||
|
||
[packager.features] | ||
packageSearch = true | ||
guessImports = true | ||
|
||
[languages.nodejs] | ||
pattern = "**/*.js" | ||
syntax = "nodejs" | ||
|
||
[languages.nodejs.languageServer] | ||
start = [ "typescript-language-server", "--stdio" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//_______________________ ┏ Info ┓ _______________________\\ | ||
// | ||
// Credit : AlipBot | ||
// | ||
// Note | ||
// Jangan Jual SC ini , | ||
// Jangan Buang Text ini, | ||
// Siapa Mahu Upload Jangan Lupa Credit :), | ||
// Siapa Tidak Letak Credit Akan Ambil Tindakan | ||
// | ||
//_______________________ ┏ Make By AlipBot ┓ _______________________\\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
|
||
<p align="center"> | ||
<img src="https://avatars.githubusercontent.com/AlipBot" width="200" height="200"/> | ||
</p> | ||
<p align="center"> | ||
<a href="#"><img src="http://readme-typing-svg.herokuapp.com?color=d1fa02¢er=true&vCenter=true&multiline=false&lines=Welcome+To+Rest+Api+AlpisV2+" alt=""> | ||
</p> | ||
<p align="center"> | ||
<a href="#"><img title="Creator" src="https://img.shields.io/badge/Creator-AlipBot-red.svg?style=for-the-badge&logo=github"></a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://github.com/AlipBot?tab=followers"><img title="Followers" src="https://img.shields.io/github/followers/AlipBot?color=green&style=flat-square"></a> | ||
<a href="https://github.com/AlipBot/Api-Alpis/stargazers/"><img title="Stars" src="https://img.shields.io/github/stars/AlipBot/Api-Alpis?color=white&style=flat-square"></a> | ||
<a href="https://github.com/AlipBot/Api-Alpis/network/members"><img title="Forks" src="https://img.shields.io/github/forks/AlipBot/Api-Alpis?color=yellow&style=flat-square"></a> | ||
<a href="https://github.com/AlipBot/Api-Alpis/watchers"><img title="Watching" src="https://img.shields.io/github/watchers/AlipBot/Api-Alpis?label=Watchers&color=red&style=flat-square"></a> | ||
<a href="https://github.com/AlipBot/Api-Alpis"><img title="Open Source" src="https://badges.frapsoft.com/os/v2/open-source.svg?v=103"></a> | ||
<a href="https://github.com/AlipBot/Api-Alpis/"><img title="Size" src="https://img.shields.io/github/repo-size/AlipBot/Api-Alpis?style=flat-square&color=darkred"></a> | ||
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FAlipBot%2FApi-Alpis%2Fhit-counter&count_bg=%2379C83D&title_bg=%23555555&icon=probot.svg&icon_color=%2304FF00&title=hits&edge_flat=false"/></a> | ||
<a href="https://github.com/AlipBot/Api-Alpis/graphs/commit-activity"><img height="20" src="https://img.shields.io/badge/Maintained-No-red.svg"></a> | ||
</p> | ||
|
||
|
||
* # TUTORIAL 📌 | ||
|
||
|
||
* ## STEP 1 | ||
Forks Github Ini Klick Di Bawah | ||
|
||
[![Fork](https://telegra.ph/file/0ac5b4f21a7c153f3bfc7.png)](https://github.com/AlipBot/api-alpis/fork) | ||
|
||
|
||
* ## STEP 2 | ||
Buat Account Mongodb Dan Buat Database Klick Di Bawah | ||
|
||
[![Deploy to Render](https://telegra.ph/file/1bc5c9749e8a46d167619.png)](https://www.mongodb.com/cloud/atlas/register) | ||
|
||
* ## STEP 3 | ||
|
||
Buat Email SMTP | ||
|
||
[`Tutorial Cara buat Email SMTP FREE Click ME`](https://www.youtube.com/watch?v=1YXVdyVuFGA)<br> | ||
|
||
* ## STEP 4 | ||
|
||
Buat Account Render Klick Di bawah | ||
|
||
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://dashboard.render.com/) | ||
|
||
Buat Web Service Baru | ||
|
||
Connect Account Github | ||
|
||
Connect repository Github Yang Kamu Fork Tadi | ||
|
||
Build Command Paste | ||
``` | ||
npm install | ||
``` | ||
|
||
Start Command Paste | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
Klick Advanced Dan | ||
|
||
Tambah Environment Variable | ||
|
||
``` | ||
mongodb = "Key Database mongodb Kamu" | ||
sendemail = 'Email SMTP' | ||
fromsendemail = 'EMAIL SMTP sama dengan atas' | ||
sendpwmail = "Password EMAIL SMTP" | ||
GET APIKEY RECAPTCHA From https://www.google.com/recaptcha/admin/create | ||
recaptcha_key_1 = 'Key recaptchaV1 Kamu' | ||
recaptcha_key_2 = 'Key recaptchaV2 Kamu' | ||
``` | ||
|
||
|
||
Lepastu | ||
|
||
Tekan Create web service | ||
|
||
lepas siap deploy add domain website kamu ke file setting dan buat key recaptcha kamu | ||
copy paste kat Environment Variable di | ||
|
||
``` | ||
recaptcha_key_1 = 'Key recaptchaV1 Kamu' | ||
recaptcha_key_2 = 'Key recaptchaV2 Kamu' | ||
``` | ||
|
||
* ## Tutorial Youtube | ||
|
||
<a href="https://youtu.be/5K3YYuq7QoI"><img src="https://img.youtube.com/vi/5K3YYuq7QoI/sddefault.jpg" alt=""> | ||
|
||
[`Tutorial In Youtube`](https://youtu.be/5K3YYuq7QoI)<br> | ||
|
||
* ## SETTING ⚙️ | ||
File Setting ``setting.js`` | ||
|
||
[`Tukar Nama Creator Disini`](https://github.com/AlipBot/Api-Alpis/blob/master/settings.js#:~:text=creator%20%3D%20%27-,%E4%B9%82%F0%9D%98%BC%F0%9D%99%A1%F0%9D%99%9E%F0%9D%99%A5%E4%B9%82,-%27%20//%20Nama)<br> | ||
[`Tukar Port Disini`](https://github.com/AlipBot/Api-Alpis/blob/master/settings.js#:~:text=port%20%3D-,8080,-//port%20host)<br> | ||
[`Tukar Limit Apikey Disini`](https://github.com/AlipBot/Api-Alpis/blob/master/settings.js#:~:text=LimitApikey%20%3D-,200,-//%20Limit%20Apikey%20default)<br> | ||
|
||
|
||
## Command Untuk Editing | ||
|
||
``` | ||
npm start | ||
``` | ||
or | ||
|
||
``` | ||
npm run node | ||
``` | ||
|
||
* ## FEATURE LIST 💡 | ||
|
||
|
||
| FEATURE MY SCRIPT |🌱| | ||
| ------------- | ------------- | | ||
| Login |✔️| | ||
| Sing Up |✔️| | ||
| NO TEMP Email |✔️| | ||
| Anti Spam Email |✔️| | ||
| Verification Email |✔️| | ||
| Change Password |✔️| | ||
| DATABASE |✔️| | ||
| Limit Apikey And Auto Reset |✔️| | ||
| Anti Error |✔️| | ||
|
||
|
||
|
||
| FEATURE API |🌱| | ||
| ------------- | ------------- | | ||
| Dowloader |✔️| | ||
| Text Pro |✔️| | ||
| Photooxy |✔️| | ||
| Sound Of Text |✔️| | ||
| Search |✔️| | ||
| Random Gambar |✔️| | ||
| Game |✔️| | ||
| Maker |✔️| | ||
| Link Short |✔️| | ||
| Information |✔️| | ||
| Tools |✔️| | ||
| Islamic |✔️| | ||
|
||
|
||
* ## Hasil Deploy🌍 | ||
|
||
[`alpis.eu.org `](https://alpis.eu.org)<br> | ||
|
||
|
||
* ## Support Deploy Free | ||
<a href="https://replit.com/@BOT-SKYLARKSKYL/Api-Alpis-in-replit?v=1"><img src="https://telegra.ph/file/8d225f38ce1920182e313.png" width="300" height="200"> | ||
<a href="https://dashboard.render.com"><img src="https://telegra.ph/file/6125fb68b97cdd156fc67.png" width="400" height="200"> | ||
|
||
|
||
|
||
## ``Credit 💳 Script`` | ||
|
||
<img src="https://avatars.githubusercontent.com/AlipBot" width="200" height="200"> | ||
|
||
[`AlipBot`](https://github.com/AlipBot)<br> | ||
|
||
<img src="https://telegra.ph/file/1cbc7e659b35a053bf25f.png" width="150" height="150"> | ||
|
||
``Halal Rest API`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//_______________________ ┏ Info ┓ _______________________\\ | ||
// | ||
// Credit : AlipBot | ||
// | ||
// Note | ||
// Jangan Jual SC ini , | ||
// Jangan Buang Text ini, | ||
// Siapa Mahu Upload Jangan Lupa Credit :), | ||
// Siapa Tidak Letak Credit Akan Ambil Tindakan | ||
// | ||
//_______________________ ┏ Make By AlipBot ┓ _______________________\\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//_______________________ ┏ Info ┓ _______________________\\ | ||
// | ||
// Credit : AlipBot | ||
// | ||
// Note | ||
// Jangan Jual SC ini , | ||
// Jangan Buang Text ini, | ||
// Siapa Mahu Upload Jangan Lupa Credit :), | ||
// Siapa Tidak Letak Credit Akan Ambil Tindakan | ||
// | ||
//_______________________ ┏ Make By AlipBot ┓ _______________________\\ |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//_______________________ ┏ Info ┓ _______________________\\ | ||
// | ||
// Credit : AlipBot | ||
// | ||
// Note | ||
// Jangan Jual SC ini , | ||
// Jangan Buang Text ini, | ||
// Siapa Mahu Upload Jangan Lupa Credit :), | ||
// Siapa Tidak Letak Credit Akan Ambil Tindakan | ||
// | ||
//_______________________ ┏ Make By AlipBot ┓ _______________________\\ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# DO NOT CHANGE THIS FILE | ||
|
||
with import <nixpkgs> { }; | ||
stdenv.mkDerivation { | ||
name = "env"; | ||
nativeBuildInputs = [ pkg-config ]; | ||
buildInputs = [ | ||
libpng | ||
libjpeg | ||
libuuid | ||
]; | ||
|
||
shellHook = '' | ||
LD=$CC | ||
nix-shell run.nix | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
//―――――――――――――――――――――――――――――――――――――――――― ┏ Modules ┓ ―――――――――――――――――――――――――――――――――――――――――― \\ | ||
|
||
const user = require('../model/user'); | ||
const bcryptjs = require('bcryptjs'); | ||
var localStrategy = require('passport-local').Strategy; | ||
|
||
module.exports = function (passport) { | ||
passport.use(new localStrategy({ usernameField: 'email' }, (email, password, done) => { | ||
user.findOne({ email: email }, (err, data) => { | ||
if (err) throw err; | ||
if (!data) { | ||
return done(null, false, { message: "User Doesn't Exist !" }); | ||
} | ||
bcryptjs.compare(password, data.password, (err, match) => { | ||
if (err) { | ||
return done(null, false); | ||
} | ||
if (!match) { | ||
return done(null, false, { message: "Password Doesn't match !" }); | ||
} | ||
if (match) { | ||
return done(null, data); | ||
} | ||
}) | ||
}) | ||
})); | ||
|
||
passport.serializeUser(function (user, done) { | ||
done(null, user.id); | ||
}); | ||
|
||
passport.deserializeUser(function (id, done) { | ||
user.findById(id, function (err, user) { | ||
done(err, user); | ||
}); | ||
}); | ||
|
||
} | ||
|
||
//―――――――――――――――――――――――――――――――――――――――――― ┏ Make By AlipBot ┓ ―――――――――――――――――――――――――――――――――――――――――― \\ |
Oops, something went wrong.