Giter VIP home page Giter VIP logo

ganjoor-api's Introduction

This project is not maintained and supported and is kept for archival purposes and possible maintainable forks. As an alternative you may take a look at: GanjoorService

Ganjoor API

CircleCI

Local Development

Create .env file in the root with this contents:

NODE_ENV=development
AUTH0_DOMAIN=ganjoor.auth0.com
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=

Then:

$ yarn
$ yarn dev

Development Docker

If you just want to run a docker container locally to host the API and the Database for you:

$ yarn
$ yarn build
$ docker-compose up

You'll see a bunch of errors at first, because it takes a bit of time for the MySQL container to start up (due to the large db dump file). As soon as it has started up, the API container will connect to it and you'll see the message:

Server started at port 4003

At that point you can head to http://localhost:4003/ to checkout the API. You can also make the containers run in the background by cancelling the current process and running:

$ docker-compose up -d

Production Docker

$ docker build ganjoor-api .
$ docker run ganjoor-api --env AUTH0_DOMAIN=... --env AUTH0_CLIENT_ID=... --env AUTH0_CLIENT_SECRET=...

API Documentation

Head to http://localhost:4003/api-docs to read the API documentation.

Sponsors

License

This software is released under the MIT License.

ganjoor-api's People

Contributors

sallar avatar hrmoh avatar iiriix 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.