Skip to content

ahmedrabii/hubspot-back

Repository files navigation

kaffeine

PHP Version

"php": ">=8.1"

Project Setup

composer install

Generate SSL Key for JWT

php bin/console lexik:jwt:generate-keypair

Environment variables with [Dotenv]

# change according to your needs
DATABASE_URL=mysql://user@[email protected]:3306/kaffein?serverVersion=mariadb-10.4.6
HUBSPOT_API_KEY=----
HUBSPOT_COMPANY_URL=https://api.hubapi.com/crm/v3/objects/companies
HUBSPOT_CONTACT_URL=https://api.hubapi.com/crm/v3/objects/contacts

Create Database

php bin/console doctrine:database:create

Migrate database

php bin/console doctrine:migrations:migrate

Loading fixtures

php bin/console doctrine:fixtures:load

Run local server with Symfony CLI

# it is best if you install the certificates and enabling TLS
symfony server:ca:install
symfony server:start  -d

Access API documentation

https://127.0.0.1:8000/api/docs

Execute Import Command

php bin/console app:import 

Execute tests via PHPUnit

# preparing environment
php bin/console doctrine:database:create --env=test
php bin/console doctrine:schema:update --force -q --no-interaction --env=test
php bin/console d:f:l --no-interaction --env=test
# run tests
vendor/bin/phpunit

Pipeline for tests with GitHub Actions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published