From 3160ec6da5356967b05b314e257931fa8a3a0315 Mon Sep 17 00:00:00 2001 From: samepant Date: Thu, 11 Mar 2021 22:04:14 -0500 Subject: [PATCH] dev env cleanup --- README.md | 10 +++++++++- netlify.toml | 16 ---------------- server.js | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index ce76670..e2f00f8 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,15 @@ ### 🚧🚧🚧🚧🚧 UNDER CONSTRUCTION 🚧🚧🚧🚧🚧🚧 +## Reason for Being + This app allows for legacy multisig users to create, sign and broadcast transactions on the stargate enabled cosmos hub chain. It's built with Cosmjs, Next.js, FaunaDB and Netlify. -## Running locally +[The app can be tested out here](https://cosmos-legacy-multisig.netlify.app/). (_*Note:*_ Only the UI and datastore are functional, waiting on some Cosmjs updates to handle multisig creation and signing) + +## Dev Setup + +You'll need a [FaunaDB](https://dashboard.fauna.com/) account and a Graphql database setup using the `db-schema.graphql` in this repo. Once you have that, create a secret key using the FaunaDB dashboard for your database, and set it as the environment variable `FAUNADB_SECRET`, in a `.env` file in the root of this repo. Clone the repo, then run: @@ -13,3 +19,5 @@ Clone the repo, then run: npm install npm run dev ``` + +Since this app uses Netlify based Lambda functions to interact with FaunaDB, when run locally it uses a proxy server locally (housed in `server.js`) to emulate Netlify's function endpoints. diff --git a/netlify.toml b/netlify.toml index fab89e9..3b99077 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,19 +3,3 @@ command = "npm run build && npm run export" functions = "lambda-build" publish = "out" - -## Uncomment to use this redirect for Single Page Applications like create-react-app. -## Not needed for static site generators. -#[[redirects]] -# from = "/*" -# to = "/index.html" -# status = 200 - -## (optional) Settings for Netlify Dev -## https://github.com/netlify/cli/blob/master/docs/netlify-dev.md#project-detection -#[dev] -# command = "yarn start" # Command to start your dev server -# port = 3000 # Port that the dev server will be listening on -# publish = "dist" # Folder with the static content for _redirect file - -## more info on configuring this file: https://www.netlify.com/docs/netlify-toml-reference/ diff --git a/server.js b/server.js index 70b0e88..afccf02 100644 --- a/server.js +++ b/server.js @@ -41,7 +41,7 @@ app if (err) { throw err; } - console.log(`> Ready on port ${port} [${env}]`); + console.log(`> Ready on port ${port}`); }); }) .catch((err) => {