Ackee dependents on …
Make sure to install and update all dependencies before you fork and setup Ackee.
Create a .env
file in the root of this project to store all environment variables in one file.
USERNAME=username
PASSWORD=password
The README contains a detailed explanation of all available options, but only those two are required to run Ackee with the existing docker-compose.yml
.
Run this command in the root of the project to use the predefined docker-compose.yml
. It contains everything you need, including MongoDB and Ackee.
docker-compose up
💡 Add the
-d
flag to the Docker command to run the services in the background.
Ackee will output the URL it's listening on once the server is running. Visit the URL with your browser and complete the finial steps using the interface.
Ackee requires a running MongoDB instance. The easiest way to install MongoDB is by using Docker. Skip this step if you have MongoDB installed or visit the website of MongoDB for alternative setups.
docker run -p 27017:27017 --name mongo mongo
For persistent storage, mount a host directory to the container directory /data/db
, which is identified as a potential mount point in the mongo Dockerfile. When starting a new container, Docker will use the volume of the previous container and copy it to the new container, ensuring that no data gets lost.
docker run -p 27017:27017 -v /path/to/local/folder:/data/db --name mongo mongo
💡 Add the
-d
flag to the Docker command to run MongoDB in the background.
Explanation:
-p
makes port27017
available at port27017
on the host-v
mounts/path/to/local/folder
to/data/db
of the container--name
sets the container name tomongo
mongo
is the name of the image
docker run -p 3000:3000 -e MONGODB='mongodb://mongo:27017/ackee' -e USERNAME='username' -e PASSWORD='password' --link mongo --name ackee electerious/ackee
💡 Add the
-d
flag to the Docker command to run Ackee in the background.
Explanation:
-p
makes port3000
available at port3000
on the host-e
sets environment variables required by Ackee--link
links Ackee with themongo
container--name
sets the container name toackee
electerious/ackee
is the name of the image
Ackee will output the URL it's listening on once the server is running. Visit the URL with your browser and complete the finial steps using the interface.
Ackee requires a running MongoDB instance. Visit the website of MongoDB for installation instructions.
Configure Ackee using environment variables or create a .env
file in the root of the project to store all variables in one file.
MONGODB=mongodb://localhost:27017/ackee
USERNAME=username
PASSWORD=password
The README contains a detailed explanation of all available options, but only those three are required to run Ackee.
The MongoDB connection string is used to connect to your MongoDB. It should also contain the username and password of your MongoDB instance when required.
The username and password variables are used to secure your Ackee interface/API.
Install all required dependencies.
yarn
Ackee will output the URL it's listening on once the server is running. Visit the URL with your browser and complete the finial steps using the interface.
yarn start