Serverless discussion forum built with React, Redux and Firebase
Serverless discussion forum built with React, Redux and Firebase using refire and refire-app.
Base UI components are from excellent Elemental UI.
https://refire.firebaseapp.com
:emoji:
syntax :fire:Create your new app in Firebase dashboard
Copy and paste apiKey
from your Firebase app console's Overview > Add Firebase to your web app
to src/config.js
Enable Sign-in providers
you want to use in your Firebase app console's Authentication > Sign-in method
settings
Change projects.default
value to your app name in .firebaserc
Run npm install
and npm run build
Run npm run login
to login to Firebase
Run npm run bootstrap
to copy the initial data structure to Firebase
Run npm run deploy
to deploy the app and security rules to Firebase
npm start
will start the development server on localhost:4000
Create adminUsers
path in your Firebase and set your admin user's uid
as key and true
as value:
"adminUsers": {
"google:123456789": true
}
You can edit default paging settings by changing settings/BOARD_PAGE_SIZE
, settings/THREAD_PAGE_SIZE
and settings/THREAD_PAGE_LIMIT
.
You can configure date format by changing settings/DATE_FORMAT
.
Export siteName
in ./src/config.js
.
export const siteName = "My forum"
Firebase security rules are defined in security-rules.bolt
.
Use npm run build:rules
to generate security-rules.json
after making changes.
Use npm run deploy:rules
to deploy security rules.
MIT