- Clone repository from
https://github.com/dashdashforce/int20h-test-photo-viewer.git
- Go to the
backend
directory - Run
cp .env.dist .env
- Get
api key
andapi secret
from the Face++ service and copy them to.env
file inFACEPLUSPLUS_API_KEY
andFACEPLUSPLUS_API_SECRET
fields
In project root run command
docker-compose up --build backend
You'll need Python 3.7 for starting app
- Go to the
backend
directory in the project root - Run
make init
for initing python virtual env - Run
make install-dev
for installing project dependencies - Run
make run-dev
Now Photo viewer
API is running on localhost:8888
You can try to check api sandbox: Local sandbox
For starting frontend app you'll need Node latest version
- Go to the
frontend
directory in the project root - Run
yarn install
for installing frontend dependencies - If you want to use local api server - change Apollo Client
uri field in
project/frontend/src/index.tsx
tolocalhost:8888
. - Run
yarn start
for starting frontend
Frontend is running on localhost:3000
Now go to Local frontend for checking out our awesome web app.