You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root of this project contains the Symfony app.
5
+
The root of this project contains the Symfony app which provides the API.
6
6
7
-
The React app can be found at app/Resources/client. This can been loaded through symfony for developing or compiled into the web folder for prodcution builds.
7
+
The React app can be found in the `app` folder. During development this is loaded through a route in symfony to provide the Symfony debug toolbar.
8
+
In production the app is loaded from compiled files from the public folder via the `.htaccess`
8
9
9
-
There are a number of number of NPM scripts that can be run from the project root.
10
+
Getting started
11
+
-------------
12
+
You will need to have [Docker] installed and running, also make sure you have PHP 7.2 or higher and [Composer] installed.
13
+
14
+
Clone the repository into a local folder.
15
+
16
+
Now inside the project folder run
17
+
```
18
+
composer install
19
+
./build.sh
20
+
docker-compose up
21
+
```
22
+
23
+
You will now be able to access the app at `http://localhost:8000` and storybook at `http://localhost:6006`.
24
+
Everytime you make a change to the app or storybook stories the app will automatically rebuild and refresh in the browser.
25
+
26
+
Running tests
27
+
-------------
28
+
###### Client
29
+
To test the React client, run the folowwing from inside the `app` folder.
30
+
31
+
`npm run lint` to run the js linter.
32
+
`npm run test` to run all the unit tests using jest.
33
+
34
+
###### API
35
+
To test the Symfony API, from the following from inside the root of the project.
36
+
37
+
`vendor/bin/phplint src` to run the php linter.
38
+
`vendor/bin/phpunit` to run the unit tests.
39
+
`vendor/bin/codecept run` to run the API end-to-end functional tests.
0 commit comments