This document has the intention of explaining how to set up the environment to run and test Andromeda. Besides this document, you can consult the Medium article on Getting started with Andromeda for more details.
You need to install Git for Windows. All of the commands in this manual need to run over "Git Bash", not over "cmd.exe" or "powershell".
You need:
- vCPU: 1
- Mem (GiB): 2
- Network Performance: Low to Moderate
Note. Recommend to run on AWS instance t2.small
or higher.
You'll need to setup a few things before running Andromeda:
If you want to fetch data from all the social media that Andromeda supports the following credential files are needed:
- By the Andromeda.ConsoleApp project:
- The "AdWords" credentials:
./Andromeda.ConsoleApp/credentials/adwords/App.config
- The "YouTube" credentials
./Andromeda.ConsoleApp/credentials/youtube/client_secret.json
./Andromeda.ConsoleApp/credentials/youtube/channel_1/Google.Apis.Auth.OAuth2.Responses.TokenResponse-Credentials.json
- The "Facebook" credentials
./Andromeda.ConsoleApp/credentials/facebook/adaacount/user1_credentials.json
./Andromeda.ConsoleApp/credentials/facebook/page/user1_credentials.json
- The "Instagram" credentials
./Andromeda.ConsoleApp/credentials/instagram/user1_credentials.json
- The "AdWords" credentials:
Check how to get these credentials on How to get credentials documentation.
Andromeda also supports fetching data from multiple Facebook and YouTube accounts, see the Adding multiple accounts documentation for more details.
You can see how to run Andromeda using the docker container on How to build and run the Andromeda container document.
The following instructions will explain how to compile and run Andromeda and
are assuming you are in the andromeda
directory that you cloned.
To build Andromeda code Do:
dotnet clean
dotnet build
We'll need one database server, so we recommend to just use the docker container in the docker-compose-andromeda.yml file.
On the root directory run:
docker-compose -f docker-compose-andromeda.yml up -d data_lake
After that you need to add an entry to /etc/hosts
as the
following:
127.0.0.1 data_lake
Install PostegresSQL, and set the password of user postgres
to dbpassword
.
After that you need to add an entry to
C:\Windows\System32\Drivers\etc\hosts
as the following:
127.0.0.1 data_lake
Finally, modify the appsettings.json
file located on the folder
Andromeda.ConsoleApp by removing the Port=5433
entry from the connection strings, and changing the user to postgres
.
You can see more details of what are the appsettings.json
files and how to
edit them on Configuring the appsettings.json.
Assuming that you just did the System Bootstrap, you'll need to apply the migrations:
cd Andromeda.ConsoleApp
dotnet run migrate --data-lake
dotnet run migrate --facebook-lake
The following instructions show some of the ways to run Andromeda. This topic assumes that you just did all the steps explained above and are on the Andromeda.ConsoleApp folder.
To fetch data from all social medias, run:
dotnet run -- fetcher
Or Fetch just from a specific Social media:
dotnet run -- fetcher -s Facebook
After fetching your data, you can export your data as CSV with the command:
dotnet run export
You can see more details about how to export data using Andromeda on How to export data lake data as CSV or JSON documentat.
To see all the commands available and their description:
dotnet run -- --help
It's also possible to see the description of sub-commands:
dotnet run -- fetcher --help