To get started with Android/FlareOS, you'll need to get familiar with Git and Repo.
To initialize your local repository using the FlareOS trees, use a command like this:
repo init -u git://github.com/FlareROM/android.git -b 1.0-O
Then to sync up:
repo sync
Please see the LineageOS Wiki for building instructions.