Add app archetype template

Need to fix auto login bug