dev env cleanup

This commit is contained in:
samepant
2021-03-11 22:04:14 -05:00
parent a75eda97db
commit 3160ec6da5
3 changed files with 10 additions and 18 deletions
+9 -1
View File
@@ -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.
-16
View File
@@ -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/
+1 -1
View File
@@ -41,7 +41,7 @@ app
if (err) {
throw err;
}
console.log(`> Ready on port ${port} [${env}]`);
console.log(`> Ready on port ${port}`);
});
})
.catch((err) => {