Every question has a answer. Written in Reactjs with Firebase.
To run the project on your machine you will need to create a project in firebase with your google account.
The features you will configure are real time:
- Real time database.
And if you want to deploy the application:
- Hosting
After configuring the real time database it is necessary to apply these rules:
{
"rules": {
"rooms": {
".read": false,
".write": "auth != null",
"$roomId": {
".read": true,
".write": "auth != null && (!data.exists() || data.child('authorId').val() == auth.uid)",
"questions": {
".read": true,
".write": "auth != null && (!data.exists() ||data.parent().child('authorId').val() == auth.uid)",
"likes": {
".read": true,
".write": "auth != null && (!data.exists() || data.child('authorId').val() == auth.uid)",
}
}
}
}
}
}
Before you begin, you will need to have the following tools installed on your machine: Git, Node.js and a package manager Yarn or npm.
# Clone this repository
$ git clone https://github.com/Luciano-Ferreira/letmeask.git
# Access the directory
$ cd letmeask
# Install all dependencies
$ yarn
# or
$ npm install
configure the local environments .env.local. The variables will be shown right after the configuration in firebase
# Run the application in dev mode
$ yarn start
# or
$ npm run start
# The application start in http://localhost:3000
-
dark theme
-
PWA
-
responsiveness
-
other databases (supabase, faunadb, firestore)
-
styled components
-
ESLint, prettier
This project is under the MIT license. See the LICENSE for more information.
Made with ♥ by @Luciano Silva 👋 Get in touch!