项目作者: rezehnde

项目描述 :
Stock Prices API built-in Symfony which delivers historical stock prices data
高级语言: PHP
项目地址: git://github.com/rezehnde/stock-prices-api.git
创建时间: 2020-08-08T19:53:58Z
项目社区:https://github.com/rezehnde/stock-prices-api

开源协议:MIT License

下载


Stock Prices API

Stock Prices API built-in Symfony API which delivers historical stock prices data.

Send an JSON object in the format bellow to /historical-data and voilá (see the Google stock prices).

  1. {
  2. "companySymbol": "GOOG",
  3. "startDate": "2020-08-01",
  4. "endDate": "2020-08-07",
  5. "email": "your_email_here"
  6. }

Deploy on Shared Server

  1. Do this bellow inside your domain directory
    1. git init
    2. git remote add origin https://github.com/rezehnde/stock-prices-api.git
    3. git pull origin master
    4. composer update
    5. php bin/console doctrine:database:create
    6. php bin/console doctrine:migrations:migrate
  2. Point your domain directory to public

How to run locally (Docker is required)

  1. mkdir leadhack-backend
  2. git init
  3. git remote add origin https://github.com/rezehnde/stock-prices-api.git
  4. git pull origin master
  5. docker-compose up -d --build leadhack
  6. docker-compose run --rm composer update
  7. docker-compose run --rm php bin/console doctrine:database:create
  8. docker-compose run --rm php bin/console doctrine:migrations:migrate

:triangular_ruler: Built with

  • Symfony - PHP Framework
  • API Platform - REST and GraphQL framework to build modern API-driven projects
  • Composer - A Dependency Manager for PHP
  • Docker - Help developers and development teams build and ship apps.

:trophy: Authors