Content management system for Modern Turkmen app
This tool requires Flutter, Firebase CLI, FlutterFire CLI, Nodejs and npm
Clone the repository:
$ git clone https://github.com/vlad0209/modern_turkmen_admin.git
$ cd modern_turkmen_admin
Install dependencies:
$ flutter pub get
$ cd functions
$ npm install
$ cd ..
Run the FlutterFire CLI:
$ flutterfire configure
Select the same Firebase project you use for the modern_turkmen app.
Build the app for Web:
$ flutter build web
In the Firebase Console in Authentication
set-up Email/Password sign-in provider. Add user. This user will be admin user. Copy UID of the user. Create Firestore database.
Create users
collection. Add its first document with the ID equal to the copied user UID.
In this document add field admin
with type boolean
and value true
. Set up Cloud Storage.
Init Firebase hosting:
$ firebase use --clear
$ firebase init hosting
When it asks you about your public directory enter build/web
. When it requests overwriting
index.html choose No
.
Deploy the project to Firebase:
$ firebase deploy
After deploying it will show you hosting URL. Open this URL in your web browser and log in with the credentials of the admin user you created.