GithubHelp home page GithubHelp logo

heroes-api's Introduction

Contributors Forks Stargazers Issues MIT License


Logo

Heroes API

A backend appliaction built with Prisma, Docker and Node.js
Explore the docs »

Report Bug · Request Feature

Table of Contents

Built With

This application was built with:

Getting Started

Before you start, make sure you have Docker and Node installed on your local machine.

Initial setup

  1. 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
  1. Launch Docker compose to run Prisma's and MySQL's images. docker-compose up -d

  2. Install all the dependencies. npm install

  3. Generate prisma instance based on datamodel. npm run generate

  4. Deploy database schema into the MySQL database. npm run deploy

  5. Seed the database with default data. npm run seed

Running the project

For REST API

  • Run in terminal: npm run start:rest

For GraphQL

  • Run in terminal npm run start:graphql

Important

  • Deploy new schema (after modifying datamodel.prisma) prisma deploy

  • AFTER MODIFYING prisma.yml npm run generate

Authors

  1. Piotr Kumorek
  2. Sebastian Stój
  3. Sławek Kołodziej
  4. Franciszek Stodulski

License

Distributed under the MIT License. See LICENSE for more information.

heroes-api's People

Contributors

adamgajzlerowicz avatar dependabot[bot] avatar fan17 avatar kulek1 avatar luisbd avatar pawelnvk avatar pgryka avatar serrg avatar slawomirkolodziej avatar tomekmularczyk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.