monco Dashboard is encoded in React is designed to provide a content log to block and monetize, as well as metrics for your blocked content. |
This repository contains the moncon dashboard.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
All of these must be available in your PATH
. To verify things are set up
properly, you can run this:
git --version
node --version
npm --version
If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.
If you want to commit and push your work as you go, you'll want to fork first and then clone your fork rather than this repo directly.
After you've made sure to have the correct things (and versions) installed, you should be able to just run a few commands to get set up:
git clone https://github.com/LedgerProject/moncon.git
cd moncon
cd packages
cd dashboard
npm install
If you get any errors, please read through them and see if you can find out what the problem is. If you can't work it out on your own then please file an issue and provide all the output from the commands you ran (even if it's a lot).
- You need to have an instance of the moncon API
- Make a copy of the .env.example file with the name .env.{environment}, and update it with your config
To start the local development server execute the following command. Make sure you have the .env.development file.
npm start
This should start up your browser. If you're familiar, this is a standard react-scripts application.
Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance. Make sure you have the .env.staging or .env.production file.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
npm run build:{environment}
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
for most functionalities is necessary to have a server that serves as static content the publisherjs project build and embeding it in a web as described here
<link rel="stylesheet" href="cdn_url/moncon.css">
<script src="cdn_url/moncon.js?id={userId}" async></script>
where the userid is the uid created by firebase.
also, the only way to create a issuer account is doing it in the admin dashboard, to create an admin account you will need to change the env ADMIN_USERS variable in api project and set it to a list of comma separated emails, then you can register a new account as a publisher using one of the admins email and the account will be not a publisher but an admin, once in the admin dashboard in the bottom of the page you can create as many issuer account as you need
- React - Frontend Javascript library
- Released under the MIT.
- Copyright 2021 Infinite Labs.
- Use it for personal and commercial projects, but please don’t republish, redistribute, or resell the application.
We focus on building a more secure, private and social internet using Open-Source and decentralized technologies.
As a team, we have developing digital products since 2012. In the last 5 years, we have focused on decentralized technologies. We aim to create products that can make a social impact. Because of that, we only use Open Source technologies, and create secure solutions taking good care of the user data and privacy.
If you would like to know when we release new resources, you can follow us on Twitter