After starting the docker services, the dependencies will be installed. And if you want, you can run the migration to have the database seeded with sample data.
Application | URL |
---|---|
API | http://localhost:8080 |
Client | http://localhost:3000 |
Neo4j DB | http://localhost:7474/browser |
make up
or
docker-compose up -d
This will start the Neo4j database, API, and client docker services.
make down
or
docker-compose down
make api-run-dev
or
docker-compose exec api npm run dev
This will run the API project on http://localhost:8080
.
make client-run-start
or
docker-compose exec client npm run start
This will run the Client project on http://localhost:3000
.
make {api|client}-run-lint
or
docker-compose exec {api|client} npm run lint
Run eslint for either {api|client} projects.
make {api|client}-run-format
or
docker-compose exec {api|client} npm run format
Run prettier for either {api|client} projects.
make {api|client}-run-test
or
docker-compose exec {api|client} npm run test
Run tests for either {api|client} projects.
make migrate
or
docker-compose exec api npm run migrate