Skip to content
/ thesis Public

This repo is backend part of MassSpecBlocks

License

Notifications You must be signed in to change notification settings

privrja/thesis

Repository files navigation

MassSpecBlocks backend

This repo is backend part of application MassSpecBlocks. The Main repo with documentation is here.

Development

Clone project and install dependencies

git clone https://github.com/privrja/thesis.git

cd thesis/

composer install --dev

Database

To drop DB and create new use:

php bin/console doctrine:database:drop --force

php bin/console doctrine:database:create

php bin/console doctrine:mig:mig

php bin/console doctrine:fixtures:load --group=prod or dev group

Run tests

Before every test you need to delete, create, migrate and purge DB like in previuos step, now test can't be run more times in a row.

To run test use composer test or php ./vendor/symfony/phpunit-bridge/bin/simple-phpunit

Start local dev server

symfony server:start

Documentation of API is localhost:8000/rest/doc Rest API is on localhost:8000/rest