GithubHelp home page GithubHelp logo

atharva-codes / digital-currency Goto Github PK

View Code? Open in Web Editor NEW

This project forked from florianjs/digital-currency

0.0 0.0 0.0 3.29 MB

Create your own Digital Currency with this self-hosted Web App. Check out the Demo website

Home Page: https://tonken.glitch.me/

License: GNU General Public License v3.0

JavaScript 26.24% CSS 9.84% EJS 63.91%

digital-currency's Introduction

Twitter Follow GitHub stars


PLEASE NOTE

This is an early version of the final Web App. DEMO WEBSITE : https://tonken.glitch.me/

Digital-Currency

Create your own private Self-Hosted Digital Currency. This Web App require MongoDB

1 - Clone the repo

git clone https://github.com/Icesofty/Digital-Currency.git

2 - Install it

npm i 

You need to create a .env file into the root folder and put SECRET=YOUR_SUPER_SECRET_PHRASE_HERE in it

3 - Launch it

node app.js
Server started at port 3000

Access it on http://localhost:3000/

4 - Customize it

You can change the demo-1.ejs and the demo-2.ejs file if you want to. If you do so, don't forget to change the content on home.ejs (Lines 130 to 145).

You can also customize your app.js : Color theme

const colorTheme = 'purple';

Default amount of Currency when a new user register (recommend 0)

const defaultTokens = 50;

Name and symbol of your Currency

const nameOfYourToken = 'Tonken';
const tokenSymbol = 'TKN';

Public or private currency

const publicRegister = true;

Name of your MongoDB

const nameDB = 'tonkenDB';

Creating Admin user

You need to create an Admin user. Change the value of admin: false to true on the users collection in MongoDB

{
    "_id" : ObjectId("5e2d57b1a0c1870e6c736d16"),
    "username" : "Icesofty",
    "email" : "[email protected]",
    "tokens" : 50,
    "admin" : true,
    "salt" : "...",
    "hash" : "...",
    "__v" : 0
}

You can then access your admin panel here : http://localhost:3000/admin

digital-currency's People

Contributors

atharva-codes avatar dependabot[bot] avatar florianjs 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.