- Install a stable version of NodeJS. The active LTS or current version should work fine.
- Install Docker.
- macOS and Windows users can install Docker Desktop which contains both Docker and Docker-Compose tools.
- Linux users need to follow the instructions on Get Docker CE for Ubuntu and then Install Docker Compose separately.
- You are good to go when you can successfully run:
docker-compose --version
- Install ModHeader.
- To test our API, we use Google Chrome with the ModHeader extension.
- Run
git clone <url> --recursive
to clone the repository and navigate to it usingcd
in your command line or shell tool. - Run
yarn --cwd digitalace-frontend/ install
to install all dependencies for frontend. - Run
mkdir pgdata
to create a directory that is used to persist data generated by and used bydb
container. - Run
docker compose up --build
to create and run all containers.
- To run a specific service, please refer to this section.
- It might take a while for all the servers to be ready when you are running it for the first time. (so please be patient ^.^)
- Point your browser to http://localhost:3000 to access the frontend.
- Point your browser to http://localhost:5000 to access the backend.
api
running backend serverdb
running postgresql serverclient
running frontend server
docker exec -it <container> sh
: to access a running container (Note: this container must be running before you can do this)docker compose run <service> sh -c "<command>"
: to run a one-time command against a servicedocker compose run --service-ports <service>
: to run a specific service
git clone <url> --recursive
- cd to the project directory
git checkout <branch>
- (make changes)
git add .
git commit -m 'commit message'
git push origin <branch>
- compare and pull request
(cd
to the root and git checkout main
)
git remote add upstream <url>
git remote -v
to check that this repo has been added as upstreamgit reset --hard
to reset all local changes to the latest local commitgit fetch upstream
git merge upstream/main
git push origin main