Skip to content

Ebram-Tharwat/nodejs-docker-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-docker-app

To see how works

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.

Included Applications
Application URL
API http://localhost:8080
Client http://localhost:3000
Neo4j DB http://localhost:7474/browser

Commands

Start docker services

make up

or

docker-compose up -d

This will start the Neo4j database, API, and client docker services.

Down docker services

make down

or

docker-compose down

Run API project

make api-run-dev

or

docker-compose exec api npm run dev

This will run the API project on http://localhost:8080.

Run Client project

make client-run-start

or

docker-compose exec client npm run start

This will run the Client project on http://localhost:3000.

Run eslint

make {api|client}-run-lint

or

docker-compose exec {api|client} npm run lint

Run eslint for either {api|client} projects.

Run prettier

make {api|client}-run-format

or

docker-compose exec {api|client} npm run format

Run prettier for either {api|client} projects.

Run tests

make {api|client}-run-test

or

docker-compose exec {api|client} npm run test

Run tests for either {api|client} projects.


Migrations

Run migrations

make migrate

or

docker-compose exec api npm run migrate