diff --git a/.gitignore b/.gitignore index c238902..d4acc0c 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ lerna-debug.log* flowdb *-credentials-* .env.testnet.local +flix-manifest.json diff --git a/api/.env.local b/api/.env.local index 2c9b006..ed25973 100644 --- a/api/.env.local +++ b/api/.env.local @@ -1,8 +1,9 @@ DATABASE_PATH=./flow-templates-db.sqlite DATABASE_URL= -MIGRATION_PATH=../dist/migrations +MIGRATION_PATH=./dist/migrations PORT=3333 FLOW_ACCESS_API_URL=https://rest-testnet.onflow.org -TEMPLATE_DIR=../templates +TEMPLATE_DIR=../templates/**/*.json AUDITORS_JSON_FILE=../auditors/auditors.json -MIXPANEL_TOKEN= \ No newline at end of file +MIXPANEL_TOKEN= +TEMPLATE_MANIFEST_FILE=flix-manifest.json diff --git a/api/flow-templates-db.sqlite b/api/flow-templates-db.sqlite index 61fb9ca..30e16d9 100644 Binary files a/api/flow-templates-db.sqlite and b/api/flow-templates-db.sqlite differ diff --git a/api/src/app.ts b/api/src/app.ts index fda8a96..163d397 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -2,7 +2,6 @@ import { json, urlencoded } from "body-parser"; import cors from "cors"; import express, { Request, Response } from "express"; import "express-async-errors"; -import path from "path"; import templateRouter from "./routes/template"; import auditorsRouter from "./routes/auditors"; import { TemplateService } from "./services/template"; diff --git a/package.json b/package.json index cdac3a6..c54533d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "description": "", "scripts": { + "dev": "npm run build && cd api && node dist/index.js --dev", "start": "cd api && node dist/index.js", "postinstall": "npx lerna exec npm install", "heroku-postbuild": "npx lerna exec npm run build",