Skip to content

thomasthk/node-server

 
 

Repository files navigation

Docmate

Node.js Server.

Contains:

  • /hasura Hasura migrations and metadata
  • docker-compose.yaml for local hasura dev env.
  • /src Node.js server source `

Build

Docker setup

Create a .env file at root redirectory:

ACTION_HANDLER_URL=http://localhost:3000
DOCMATE_JWT_SECRET=myadminsecretkey
DOCMATE_HASURA_SECRET={"type": "HS256", "key": "6&#X6((t>:^v>CM3g5NYfY63Z4=KN4Hx"}
IMAGES_PATH=/tmp
docker-compose up -d

This creates a postgresql, hasura container.

Run Nodejs server

yarn

# open hasura console
npm run console

# tsc
npm run tsc

# node server
npm run dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 83.3%
  • PLpgSQL 9.3%
  • HTML 4.4%
  • JavaScript 1.4%
  • Other 1.6%