GithubHelp home page GithubHelp logo

ipwnosx / authcord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unreleased/authcord-old

0.0 0.0 0.0 253 KB

Discord Authentication System

License: GNU General Public License v3.0

JavaScript 67.59% TSQL 6.26% CSS 4.85% HTML 21.30%

authcord's Introduction

Readme

Please note. This readme is still under construction.

Hi, thank you for downloading and testing out this free dashboard, not much has been implemented except the basics. You'll notice there isn't any payments implemented and most-likely there won't be. There isn't too much error handling, you'll have to resolve a lot of the issues yourself, just consider this a very basic template.

You will need some devops/developer ability in order to set this up, i'm sure you could find somebody who is willing to do it for you for cheap, that person is not me.

The bot is built into this, once you start the server the bot will be started alongside it.

Contents

Features

  • Login/registration through Discord OAuth
  • Admin panel to:
    • Edit keys
    • Generate key
    • View users
      • View servers a user is in
  • Activation system
    • Activate keys (user is added to server once they activate their key, however they are not automatically removed)

Setup

Follow the different guides below to setup this on your server.

Enable Discord Developer Mode

Visit your Discord user settings. It should be at the bottom-left of your screen.


Visit "Appearance" and scroll down to "Advanced". The first option will let you enable developer mode.


Test it's working. Right click a user on your friends list and if you see the option to "Copy ID". You've successfully enabled Discord developer mode.

Setting up .env.template

PORT The port you want the server to run on. The default is set to 3000 for testing.
DISCORD_CLIENT_ID The client ID for your Discord Bot. Visit Discord developers and select your application to view your client ID.
DISCORD_CLIENT_SECRET The client secret for your Discord Bot. You can get it from the same place as DISCORD_CLIENT_ID
DISCORD_BOT_TOKEN The Discord Bot token which can be found under the "Bot" section on the Discord developers panel.
DISCORD_REDIRECT_URI The redirect URI for your Discord login. You need to change this to the URL with the same /discord/callback path if you plan on deploying the server to a website rather than just testing on localhost.
DISCORD_SCOPES Scopes used by the Discord login. Editing without correct configuration may cause bugs. I recommend using the defaults.
DISCORD_SERVER_ID You can get this after you've enabled Discord developer mode. Right click on the server and click "Copy ID".
DEFAULT_ROLE The default role to give users once they're added to the server (After activating their key). You can get the role ID by enabling Discord developer mode and clicking "Copy ID" on the role of a user.

DB_HOST The IP/host for your MySQL database.
DB_NAME The name of your Database.
DB_USER The username for the account of your database.
DB_PASS The password for the account of your database.

Importing the MySQL Database

  • Please follow the .env.template tutorial and fill in ALL the details, you should enable developer mode if not already under your Discord appearance settings, right clicking often lets you "copy id"
  • Please create a mysql database and import the import.sql file to get the basic configuration for the server to work
  • I recommend using pm2 or forever to run the server constantly, check their documentation for instruction
  • Make sure you run npm install to install the required dependencies for the software to work. You can test it by running npm start if you see any errors, chances are you haven't set it up successfully. The default url will be: http://localhost:3000

authcord's People

Contributors

alii avatar unreleased avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.