ErickSumargo / Dads-Engine

Microservice for client Dads (https://github.com/ErickSumargo/Dads)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI FOSSA Status

Microservice for client Dads powered with GraphQL engine by Apollo GraphQL.

Application

Stacks

Architecture

How to run

  • Install dependencies for local node_modules.
npm install
  • Generate Prisma Client (experimental).
npx prisma generate --schema src/database/schema.prisma
  • Setup your local MySQL database and retrieve the URL. The URL placeholder will be:
mysql://USER:PASSWORD@HOST:PORT/DATABASE, 
for example: mysql://root:1234@127.0.0.1:3306/dads

Note: If you don't set the password, you may omit the :1234 part.

  • Create new .env file in the root project's root folder, then set:
DATABASE_URL=[MYSQL_DATABASE_URL]
JWT_VERIFICATION=[SHARED_KEY] (see Contributing section πŸ‘‡)
  • Run the application.
npm start
  • The default port for the application should be 4000 (you may configure it too). Now you can visit:
http://localhost:4000

Contributing

Let's get in touch if you're interested in contributing. Fork it, submit your PR.
Also feel free to open new issue, request features, or any kind of your support (join stargazers ⭐️ | treat me coffee 😁).

Licenses

FOSSA Status

About

Microservice for client Dads (https://github.com/ErickSumargo/Dads)

License:MIT License


Languages

Language:JavaScript 100.0%