A single page web application to showcase youtube videos for educational purpose.
Demo 1: https://flutterbook.net
Demo 2: https://pythonbangla.com
I redevelop my original Python Django Framework based project PythonBangla to Reactjs and firebase based project. During the making of this project, I updated the UI a bit.
For last 6 months, I was learning ReactJs library. I wanted to develop something else. But before developing my other big project, I thought lets rebuild my original django project so that I can test how good I understand React, Firebase Cloud Firestore (NoSQL) etc.
I develop this project in 5 days by my part time effort. Also this project is just for exploring my knowledge, so I didn’t invest more time to add more features, like a proper admin panel etc.
Demo 1: 😎 http://pythonbangla.com/ | Source Code: Github React
Demo 2: 🤓 Django + PostgreSQL + Heroku | Source Code: Github Django
I just want to showcase my youtube tutorials in nice way. Also this site helps SEO in Google Search Engine.
frontend/config/Setting.js
and update all the infofrontend/Model/firebaseauth.js
file by your project info
// Firebase Authentication Replace with your data
import Firebase from 'firebase';
const config = {
apiKey: "sxxxx",
authDomain: "ssss",
databaseURL: "xxxx",
projectId: "xxxx",
storageBucket: "xxxx",
messagingSenderId: "xxx"
};
export default Firebase.initializeApp(config);
If we compare this with relational database, then collections are table name and document are each row of item in table.
In Firebase Cloud Firestore the rules should be look like this. As your project need to add data, so you open public write/read. When your writing task complete, just remove the write
part
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write;
}
}
}
Now add <Route path="/admin" component={FirebaseForm} ></Route>
this code in frontend/Router/AppRouter.js
<Switch>
....
<Route path="/admin" component={FirebaseForm} ></Route>
<Route component={NotFoundPage} ></Route>
</Switch>
Also add import FirebaseForm from '../components/FirebaseForm';
this code at the top of the frontend/Router/AppRouter.js
yarn start
in terminal you can visit http://localhost:3000/admin
where you can add your contents to firebase
Run yarn build
it will create a build folder with production files
Now follow Create React App Firebase Hosting to deploy your project in firebase
firebase deploy —project PROJECT_ID
If you want to contribute on this project, you’re welcome to fork the project and submit a pull request.
Feel free to open an issue, or find me @mahmudahsan on Twitter.