If you have these components in separate folders within the main project folder simple create a git repo within each folder.
$cd engine
$git init .
$cd ../web-files
$git init .
If you have one folder within the other, you can do the same but use .gitignore