Skip to content

Commit c6f5e43

Browse files
jewome62dunglas
authored andcommitted
Update from Symfony 3.2 Standard Edition to Symfony 4.0 with api-platform/api-platform repo (#23)
1 parent e7703a9 commit c6f5e43

File tree

139 files changed

+27704
-5987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+27704
-5987
lines changed

.gitignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

.travis.yml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,42 @@
11
sudo: required
22

33
services:
4-
- docker
4+
- docker
5+
6+
cache:
7+
yarn: true
8+
directories:
9+
- admin/node_modules
10+
- client/node_modules
11+
12+
before_script:
13+
- sudo service mysql stop
14+
- sudo service postgresql stop
15+
- wget https://kubernetes-helm.storage.googleapis.com/helm-v2.6.1-linux-amd64.tar.gz
16+
- tar xzf helm-v2.6.1-linux-amd64.tar.gz
17+
- npm install -g react-scripts
18+
- while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done
519

620
script:
7-
- docker-compose build
8-
- docker-compose run web composer install -o -n
9-
- docker-compose run web bin/console security:check
10-
- docker-compose run web bin/console doctrine:schema:validate --skip-sync
11-
- docker-compose up -d
12-
- docker-compose run web bin/console doctrine:schema:create
13-
- docker-compose run web bin/console hautelook:fixtures:load -n
21+
- docker-compose up -d
22+
- linux-amd64/helm lint api/helm/api/
23+
- sleep 20
24+
- sh -c "cd admin && PUBLIC_URL="/api-demo-admin-test" yarn install && yarn build"
25+
- sh -c "cd client && PUBLIC_URL="/api-demo-client-test" yarn install && yarn build"
26+
- docker-compose exec php composer install -o -n
27+
- docker-compose exec php bin/console security:check
28+
- docker-compose exec php bin/console doctrine:schema:validate --skip-sync
29+
- docker-compose exec php bin/console doctrine:schema:drop --force
30+
- docker-compose exec php bin/console doctrine:schema:create
31+
- docker-compose exec php bin/console hautelook:fixtures:load -n
32+
- docker-compose exec php bin/console doctrine:schema:drop --env=test --force
33+
- docker-compose exec php bin/console cache:warmup --env=test
34+
- docker-compose exec php bin/behat
35+
- curl http://localhost
36+
- curl http://localhost:81
37+
- curl http://localhost:8080
38+
- curl http://localhost:8081
39+
- curl -k https://localhost
40+
- curl -k https://localhost:444
41+
- curl -k https://localhost:8443
42+
- curl -k https://localhost:8444

Dockerfile

Lines changed: 0 additions & 63 deletions
This file was deleted.

LICENSE

100644100755
File mode changed.

README.md

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@ Installation (recommended)
1111

1212
$ git clone https://github.com/api-platform/demo.git
1313

14-
1514
$ docker-compose up
1615
```
1716

17+
And go to https://localhost
18+
1819
Installation (manual)
1920
=====================
2021

2122
```shell
2223

2324
$ git clone https://github.com/api-platform/demo.git
2425

25-
$ composer install
26+
# Create a user and a database in PostgreSQL and enter the credentials into .env
2627

27-
# Create a user and a database in MySQL and enter the credentials during composer install
28+
$ composer install
2829

2930
$ php bin/console doctrine:schema:update --force
3031
```

admin/.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/*.log
2+
**/._*
3+
**/.DS_Store
4+
**/.gitignore
5+
**/.gitattributes
6+
**/Thumbs.db
7+
**/*.md
8+
**/.dockerignore
9+
Dockerfile*
10+
.env*

admin/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REACT_APP_API_ENTRYPOINT=https://localhost:8443

admin/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

admin/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:9.4-alpine
2+
3+
RUN mkdir -p /usr/src/admin
4+
5+
WORKDIR /usr/src/admin
6+
7+
# Prevent the reinstallation of node modules at every changes in the source code
8+
COPY package.json yarn.lock ./
9+
RUN yarn install
10+
11+
COPY . ./
12+
13+
CMD yarn start

0 commit comments

Comments
 (0)