-
Notifications
You must be signed in to change notification settings - Fork 9
DRAFT Getting started
Cris Simpson edited this page Feb 22, 2022
·
3 revisions
Running Paws Data Pipeline locally requires the following:
- (_review 1) Python - Download here.
- (_review 2) Node - Download here.
- Docker - Download here. Windows users, see our wiki for alternate directions.
- Navigate to local destination directory.
- Clone the repo -
$ git clone https://github.com/CodeForPhilly/paws-data-pipeline
- Run the Docker Desktop client locally (_review 4) (Mac) [Separate instructions for linux?]
- Navigate to
.../paws-data-pipeline/src
- Build the container:
$ docker-compose build
- Run the container:
$ docker-compose up
- The client should now be accessible at
http://localhost:80
Note - Changes made to the (_review 3) [resource files?] require removing volumes and rebuilding the container: $ docker-compose down-v
$ docker-compose build
-
$ docker-compose up
- Navigate to
.../paws-data-pipeline/src/client
- Install dependencies locally -
$ npm install
- Run the client -
$ npm run start
- The client should now be accessible at
http://localhost:3000
After running the Docker container and the local client, the local client at localhost:3000
should be able to access the Docker API. You can test this by going to http://localhost:5000/api/user/test
. If you see "OK from User Test @ ..."
, the client is successfully accessing the Docker API. If not, see troubleshooting.