- Frontend: ReactJS
- Backend: Express on NodeJS + Mongoose on MongoDB
- Environment: Docker Compose. Images based on alpine-node and mongodb
You need Docker and Docker Compose installed to run the development environment.
To get the app running on Development Mode*, open your Bash Terminal and run:
$ docker-compose build
$ docker-compose up
This will create and run two containers:
-
Frontend: You can visit the web client at http://localhost:3000
-
Backend: The backend API will be available at http://localhost:9000
* This app example is only meant to run in Development Mode.
To run the unit test on the frontend you must first build the client image (see Setup instructions). Then run:
$ docker run -it [FOLDERNAME]_client sh -c "npm test"
This will run the Jest+Enzyme unit tests
Important: The backend (api) does not include unit testing