
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/Icesofty/Digital-Currency
This is an early version of the final Web App. DEMO WEBSITE : https://tonken.glitch.me/
Create your own private Self-Hosted Digital Currency. This Web App require MongoDB
git clone https://github.com/Icesofty/Digital-Currency.git
npm i
You need to create a .env file into the root folder and put SECRET=YOUR_SUPER_SECRET_PHRASE_HERE in it
node app.js
Server started at port 3000
Access it on http://localhost:3000/
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';
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" : "example@example.com",
"tokens" : 50,
"admin" : true,
"salt" : "...",
"hash" : "...",
"__v" : 0
}
You can then access your admin panel here : http://localhost:3000/admin
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.