diff --git a/.travis.yml b/.travis.yml index c764ca78..8723b637 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ before_install: - sudo mv docker-compose /usr/local/bin before_script: - - export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test + - export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/fittrackee_test - export APP_SETTINGS=fittrackee_api.config.TestingConfig - export REACT_APP_API_URL=http://127.0.0.1 - export NODE_ENV=development diff --git a/Makefile.config b/Makefile.config index 02999ac0..159670d3 100644 --- a/Makefile.config +++ b/Makefile.config @@ -22,5 +22,5 @@ PYTEST = $(VENV)/bin/py.test COV = $(VENV)/bin/python-codacy-coverage # Node env -NODE_MODULES = $(PWD)/mpwo_client/node_modules -NPM ?= yarn --modules-folder mpwo_client/node_modules/ +NODE_MODULES = $(PWD)/fittrackee_client/node_modules +NPM ?= yarn --modules-folder fittrackee_client/node_modules/ diff --git a/docker-compose-ci.yml b/docker-compose-ci.yml index cdaf46e3..504610d4 100644 --- a/docker-compose-ci.yml +++ b/docker-compose-ci.yml @@ -2,8 +2,8 @@ version: '3.3' services: - mpwo-db: - container_name: mpwo-db + fittrackee-db: + container_name: fittrackee-db build: https://github.com/SamR1/mpwo.git#master:fittrackee_api/db ports: - 5435:5432 @@ -11,36 +11,36 @@ services: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - mpwo-api: - container_name: mpwo-api + fittrackee-api: + container_name: fittrackee-api build: https://github.com/SamR1/mpwo.git#master:fittrackee_api ports: - 5001:5000 environment: - - DATABASE_URL=postgres://postgres:postgres@mpwo-db:5432/mpwo - - DATABASE_TEST_URL=postgres://postgres:postgres@mpwo-db:5432/mpwo_test + - DATABASE_URL=postgres://postgres:postgres@fittrackee-db:5432/fittrackee + - DATABASE_TEST_URL=postgres://postgres:postgres@fittrackee-db:5432/fittrackee_test - FLASK_APP=server.py - FLASK_DEBUG=1 - APP_SETTINGS=fittrackee_api.config.TestingConfig depends_on: - - mpwo-db + - fittrackee-db links: - - mpwo-db + - fittrackee-db - mpwo-client: - container_name: mpwo-client + fittrackee-client: + container_name: fittrackee-client build: context: https://github.com/SamR1/mpwo.git - dockerfile: ./mpwo_client/Dockerfile + dockerfile: ./fittrackee_client/Dockerfile args: - NODE_ENV=development - REACT_APP_API_URL=${REACT_APP_API_URL} ports: - 3007:3000 depends_on: - - mpwo-api + - fittrackee-api links: - - mpwo-api + - fittrackee-api nginx: container_name: nginx @@ -49,7 +49,7 @@ services: ports: - 80:80 depends_on: - - mpwo-api - - mpwo-client + - fittrackee-api + - fittrackee-client links: - - mpwo-api + - fittrackee-api diff --git a/docker-compose.yml b/docker-compose.yml index 560b07bb..65a354d1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,8 @@ version: '3.3' services: - mpwo-db: - container_name: mpwo-db + fittrackee-db: + container_name: fittrackee-db build: ./fittrackee_api/db ports: - 5435:5432 @@ -11,36 +11,36 @@ services: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - mpwo-api: - container_name: mpwo-api + fittrackee-api: + container_name: fittrackee-api build: ./fittrackee_api ports: - 5001:5000 environment: - - DATABASE_URL=postgres://postgres:postgres@mpwo-db:5432/mpwo - - DATABASE_TEST_URL=postgres://postgres:postgres@mpwo-db:5432/mpwo_test + - DATABASE_URL=postgres://postgres:postgres@fittrackee-db:5432/fittrackee + - DATABASE_TEST_URL=postgres://postgres:postgres@fittrackee-db:5432/fittrackee_test - FLASK_APP=server.py - FLASK_DEBUG=1 - APP_SETTINGS=fittrackee_api.config.DevelopmentConfig depends_on: - - mpwo-db + - fittrackee-db links: - - mpwo-db + - fittrackee-db - mpwo-client: - container_name: mpwo-client + fittrackee-client: + container_name: fittrackee-client build: context: ./ - dockerfile: ./mpwo_client/Dockerfile + dockerfile: ./fittrackee_client/Dockerfile args: - NODE_ENV=development - REACT_APP_API_URL=${REACT_APP_API_URL} ports: - 3007:3000 depends_on: - - mpwo-api + - fittrackee-api links: - - mpwo-api + - fittrackee-api nginx: container_name: nginx @@ -49,7 +49,7 @@ services: ports: - 80:80 depends_on: - - mpwo-api - - mpwo-client + - fittrackee-api + - fittrackee-client links: - - mpwo-api + - fittrackee-api diff --git a/mpwo_client/Dockerfile b/fittrackee_client/Dockerfile similarity index 100% rename from mpwo_client/Dockerfile rename to fittrackee_client/Dockerfile diff --git a/mpwo_client/e2e/activities.test.js b/fittrackee_client/e2e/activities.test.js similarity index 100% rename from mpwo_client/e2e/activities.test.js rename to fittrackee_client/e2e/activities.test.js diff --git a/mpwo_client/e2e/admin-sports.test.js b/fittrackee_client/e2e/admin-sports.test.js similarity index 100% rename from mpwo_client/e2e/admin-sports.test.js rename to fittrackee_client/e2e/admin-sports.test.js diff --git a/mpwo_client/e2e/admin.test.js b/fittrackee_client/e2e/admin.test.js similarity index 100% rename from mpwo_client/e2e/admin.test.js rename to fittrackee_client/e2e/admin.test.js diff --git a/mpwo_client/e2e/index.test.js b/fittrackee_client/e2e/index.test.js similarity index 100% rename from mpwo_client/e2e/index.test.js rename to fittrackee_client/e2e/index.test.js diff --git a/mpwo_client/e2e/login.test.js b/fittrackee_client/e2e/login.test.js similarity index 100% rename from mpwo_client/e2e/login.test.js rename to fittrackee_client/e2e/login.test.js diff --git a/mpwo_client/e2e/profile.test.js b/fittrackee_client/e2e/profile.test.js similarity index 100% rename from mpwo_client/e2e/profile.test.js rename to fittrackee_client/e2e/profile.test.js diff --git a/mpwo_client/e2e/register.test.js b/fittrackee_client/e2e/register.test.js similarity index 100% rename from mpwo_client/e2e/register.test.js rename to fittrackee_client/e2e/register.test.js diff --git a/mpwo_client/e2e/utils.js b/fittrackee_client/e2e/utils.js similarity index 100% rename from mpwo_client/e2e/utils.js rename to fittrackee_client/e2e/utils.js diff --git a/fittrackee_client/package.json b/fittrackee_client/package.json new file mode 100644 index 00000000..088df5ec --- /dev/null +++ b/fittrackee_client/package.json @@ -0,0 +1,4 @@ +{ + "name": "fittrackee_client", + "version": "0.1.0" +} diff --git a/mpwo_client/public/favicon.ico b/fittrackee_client/public/favicon.ico similarity index 100% rename from mpwo_client/public/favicon.ico rename to fittrackee_client/public/favicon.ico diff --git a/mpwo_client/public/img/photo.png b/fittrackee_client/public/img/photo.png similarity index 100% rename from mpwo_client/public/img/photo.png rename to fittrackee_client/public/img/photo.png diff --git a/mpwo_client/public/img/sports/cycling-sport.png b/fittrackee_client/public/img/sports/cycling-sport.png similarity index 100% rename from mpwo_client/public/img/sports/cycling-sport.png rename to fittrackee_client/public/img/sports/cycling-sport.png diff --git a/mpwo_client/public/img/sports/cycling-transport.png b/fittrackee_client/public/img/sports/cycling-transport.png similarity index 100% rename from mpwo_client/public/img/sports/cycling-transport.png rename to fittrackee_client/public/img/sports/cycling-transport.png diff --git a/mpwo_client/public/img/sports/hiking.png b/fittrackee_client/public/img/sports/hiking.png similarity index 100% rename from mpwo_client/public/img/sports/hiking.png rename to fittrackee_client/public/img/sports/hiking.png diff --git a/mpwo_client/public/img/sports/mountain-biking.png b/fittrackee_client/public/img/sports/mountain-biking.png similarity index 100% rename from mpwo_client/public/img/sports/mountain-biking.png rename to fittrackee_client/public/img/sports/mountain-biking.png diff --git a/mpwo_client/public/img/sports/running.png b/fittrackee_client/public/img/sports/running.png similarity index 100% rename from mpwo_client/public/img/sports/running.png rename to fittrackee_client/public/img/sports/running.png diff --git a/mpwo_client/public/img/sports/walking.png b/fittrackee_client/public/img/sports/walking.png similarity index 100% rename from mpwo_client/public/img/sports/walking.png rename to fittrackee_client/public/img/sports/walking.png diff --git a/mpwo_client/public/index.html b/fittrackee_client/public/index.html similarity index 97% rename from mpwo_client/public/index.html rename to fittrackee_client/public/index.html index 909b499b..a4687ed6 100644 --- a/mpwo_client/public/index.html +++ b/fittrackee_client/public/index.html @@ -27,7 +27,7 @@ integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin="" > - mpwo + FitTrackee