Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florianjs/Digital-Currency
Create your own Digital Currency with this self-hosted Web App. Check out the Demo website
https://github.com/florianjs/Digital-Currency
currency mongodb nodejs self-hosted tailwindcss
Last synced: about 2 months ago
JSON representation
Create your own Digital Currency with this self-hosted Web App. Check out the Demo website
- Host: GitHub
- URL: https://github.com/florianjs/Digital-Currency
- Owner: florianjs
- License: gpl-3.0
- Archived: true
- Created: 2020-01-17T12:40:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T22:10:49.000Z (about 2 years ago)
- Last Synced: 2024-05-22T16:15:07.572Z (7 months ago)
- Topics: currency, mongodb, nodejs, self-hosted, tailwindcss
- Language: EJS
- Homepage: https://tonken.glitch.me/
- Size: 3.3 MB
- Stars: 104
- Watchers: 6
- Forks: 21
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![Twitter Follow](https://img.shields.io/twitter/follow/icesofty?label=Follow&style=social) ![GitHub stars](https://img.shields.io/github/stars/Icesofty/Digital-Currency?style=social)
---
# PLEASE NOTEThis 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