A full-stack application which catalogs active projects within an organization.
Project is created with:
- Node.js version: 16.13.2
- Express.js version: 4.18.2
- React version: 18.2.0
- Docker version: 20.10.23
- Docker Compose version: v2.15.1
- swagger-jsdoc version: 6.2.8
To use this application, you must first install Docker and Docker-compose on your local machine to run on the terminal. This should be done by installing bother Docker and Docker-Compose through Brew:
brew install docker
brew install docker-compose
Other installation versions of Docker can be found here. Additionally Git must be installed on your local machine. Installation documents for Git can be found here. A terminal is used to run the following setup commands. Please ensure you have GNU make on your computer. Installation of this can vary between devices but can be achieved by running the following in a terminal:
Linux:
sudo apt-get install make
MacOS:
brew install make
Windows:
choco install make
Running this project:
- clone the repository onto your local machine (SSH and HTTP examples are provided below).
$ git clone git@github.com:nkoda/Atlas.git
$ git clone https://github.com/nkoda/Atlas.git
- Navigate to the root of the repository directory:
$ cd ../Atlas.git
- Run the makefile command to build the docker images and run docker-compose
$ make build-run-all
- Access the application at
http://localhost:3000
5.(OPTIONAL) When done with the application, remove the images by running the following makefile command:
$ make remove-images
-
If Docker fails to pull the associated images, you can manually run the applications by running 'npm start' within both the
backend
andfrontend
directories. -
Swagger documentation is provided by visiting the following url when application is running:
http://localhost:8080/api-docs/#/
- If you encounter any issues, try rebuilding the Docker images:
docker-compose build --no-cache
- If you want to run the application in the backgroun, use the
-d
flag:
docker-compose up -d
- To stop the application, press
CTRL + C
on windows, orCMD + C
on mac in the terminal, or run the following command:
docker-compose down