A backend appliaction built with Prisma, Docker and Node.js
Explore the docs »
Report Bug
·
Request Feature
This application was built with:
Before you start, make sure you have Docker and Node installed on your local machine.
- Clone this repo into your local machine
- with https
git clone https://github.com/netguru/heroes-api.git
- or with ssh
git clone [email protected]:netguru/heroes-api.git
-
Launch Docker compose to run Prisma's and MySQL's images.
docker-compose up -d
-
Install all the dependencies.
npm install
-
Generate prisma instance based on datamodel.
npm run generate
-
Deploy database schema into the MySQL database.
npm run deploy
-
Seed the database with default data.
npm run seed
- Run in terminal:
npm run start:rest
- Run in terminal
npm run start:graphql
-
Deploy new schema (after modifying
datamodel.prisma
)prisma deploy
-
AFTER MODIFYING
prisma.yml
npm run generate
Distributed under the MIT License. See LICENSE
for more information.