Skip to content

REST API Handler Template | Lib: NodeJS, Express.js | Login System: Passport-Discord | With Key Generator

License

Notifications You must be signed in to change notification settings

MGalaCyber/REST_API-NodExCord

Repository files navigation

GitHub release (latest by date) Discord GitHub top language GitHub forks GitHub contributors GitHub issues GitHub pull requests Watching Stars GitHub commit activity

DeepSource



📑 Feature

  • Rest API
  • Api Key Generator
  • Api Key Validator
  • Login using Discord Oauth2
  • User Authorized Check
  • Easy to use

📌 Note

If you want REST API handler template with API Key Generator, you can get HERE

📎 Requirements

📚 Installation

git clone -b basic https://github.com/MGalaCyber/REST_API-NodExCord
cd REST_API-NodExCord
npm install

📄 Configuration

  • Rename .env.example to .env and fill out the values:
### Express
PORT=
SECRET=Random_Number (Encrypted & Unique Code Number Recommended)

### Discord
SCOPE=["identify", "email"] (Default)
CLIENT_ID=Discord_Client_ID
CLIENT_SECRET=Discord_Client_Secret
CLIENT_CALLBACK=http://sitename.domain/auth/discord/callback

### Backend
MONGO_URI=You_MongoDB_Url
  • Go to Discord Developer Portal, then go to your Application > Oauth2 > Redirects. Copy url from CLIENT_CALLBACK and paste to Redirects and save.
  • After installation or finishes all you can use node . to start the bot. or Run Start.bat

🔔 Notice!

Now for Decrypted version is Available on Ko-Fi Shop. You can buy like Basic/Master version with Different Features. By buying my project products, you help me to keep motivated and passionate about developing other projects.

🔐 Licensed

Distributed under the Apache 2.0 License. See LICENSE for more information.

💝 Support Me

❣ Contributors