- Node 10
- Yarn 1.x or npm
- SQLite3
- Clone the repository
- Run
yarnornpm installinstalls all required dependencies. - Run
node setup.jsto create the SQLite3 database at.date/main.db
Equivalent
npm run <script>should also work
yarn devwill start micro in dev mode using micro-devyarn startwill start micro in production mode on the port defined by PORT environment variable (default 3000)prestartrunssetup.jswhich will the SQLite3 events table if it doesn't exist.
yarn resetDANGER will remove and re-initialise the SQLite3 databaseyarn lintwill lint all of the files with xoyarn formatwill run lint with--fixoption on all the examples files (and tests).
This was designed to run on glitch.com, hence the use of SQLite3.
You can remix it directly from https://glitch.com/~interesting-protocol or deploy from this repository/your fork using Glitch's GitHub import feature.
Code is licensed under the MIT License.