RadoslavPetrovic / ac_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AC test

This project was build using React, Symfony, SQLite

Installing and running frontend

Node used v16.14.0
Open the ./front directory, and run:

npm install --no-save

Installs all required dependencies.
After script is completed, run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Installing and running backend

PHP used 8.2.11
Open the ./back directory, and run:

composer install

Installs all required dependencies.
After script is completed, run:

php bin/console doctrine:database:create

Creates SQLite database.
After script is completed, run:

php bin/console doctrine:migrations:migrate

Executes migrations to database.
After script is completed, run:

php bin/console doctrine:fixtures:load

Seeds database with initial data.
After script is completed, run:

php bin/console lexik:jwt:generate-keypair

Generates keypair.
After script is completed, run:

symfony server:start --no-tls

Runs Symfony server on http://localhost:8000.

Note: Login credentials are username: user{id} and password: password{id}, for example: user1, password1

Symfony tests

To start tests run:

php bin/phpunit

About


Languages

Language:PHP 53.1%Language:TypeScript 44.0%Language:HTML 2.0%Language:CSS 0.5%Language:JavaScript 0.3%