Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/araguaci/nlw-together-reactjs
#Letmeasak => This is a project developed during the Next Level Week Together, presented by @Rocketseat during June 2021.
https://github.com/araguaci/nlw-together-reactjs
nlw nlw-06 nlw-together nlw-together-reactjs reactjs rocketseat rocketseat-nlw
Last synced: about 1 month ago
JSON representation
#Letmeasak => This is a project developed during the Next Level Week Together, presented by @Rocketseat during June 2021.
- Host: GitHub
- URL: https://github.com/araguaci/nlw-together-reactjs
- Owner: araguaci
- License: mit
- Created: 2021-06-21T00:01:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-30T23:50:52.000Z (over 3 years ago)
- Last Synced: 2024-05-21T07:59:26.586Z (7 months ago)
- Topics: nlw, nlw-06, nlw-together, nlw-together-reactjs, reactjs, rocketseat, rocketseat-nlw
- Language: SCSS
- Homepage: https://letmeask-42c3c.web.app/
- Size: 977 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Technologies |
Project |
Getting Started |
Todo |
Roadmap |
Contributing |
License
## 🧪 Technologies
This project was developed using the following technologies:
- [React](https://reactjs.org)
- [Awesome NodeJS Tools](https://github.com/artesdosul/awesome-nodejs/tree/master
- [Sass](https://sass-lang.com/)
- [Firebase](https://firebase.google.com/)
- [TypeScript](https://www.typescriptlang.org/)## 🔎 Project
Letmeasak! This is a project developed during the Next Level Week Together, presented by @diego3g CTO at @rocketseat during June 2021.
Tool that has the purpose of solving questions during a live class. With it you can create private rooms where only those who have the room ID can access, participants can ask questions with Google Account, like on them. The room creator can mark the questions as answered, highlight and remove questions, the room can be closed.Code room ReactJS:
```code
-Md-otlvCJyPPoCBbprh
```Link [Demo room](https://letmeask-42c3c.web.app/rooms/-Md-otlvCJyPPoCBbprh)
Demo project home [here](https://letmeask-42c3c.web.app).
## 🚀 Getting started
```bash
$ git clone https://github.com/araguaci/nlw-together-reactjs.git
$ cd nlw-together-reactjs
```Follow the steps below:
```bash
# Install the dependencies
$ yarn# Start the project
$ yarn start
```The app will be available for access on your browser at http://localhost:3000
Note: to use the project on your own machine or deploy, it is necessary to follow the Firebase configuration rules below.
- Create a new project in Firebase (click here);
- On the project's configuration page, copy the string values from `firebaseConfig`;
- Create a `.env.local` file for environment variables, copy the variables prefixed with `REACT_APP` from `firebaseConfig` in the `firebase.ts` file in the services folder and paste in the `.env.local` file;
- Assign string values that were copied from the Firebase project to these variables;
- In RealTime Database, enter the following rules:
```rules firebase
{
"rules": {
"rooms": {
".read": false,
".write": false,
"$roomId": {
".read": "!root.child('/rooms/' + $roomId + '/endedAt').exists() || data.child('authorId').val() == auth.uid ",
".write": "auth != null && (!data.exists() || data.child('authorId').val() == auth.uid)",
"questions": {
".read": "!root.child('/rooms/' + $roomId + '/endedAt').exists()",
".write": false,
"$questionId":{
".read": true,
".write": "auth != null && !root.child('/rooms/' + $roomId + '/endedAt').exists() && (!data.exists() || data.child('author/id').val() == auth.uid)",
"likes": {
".read": true,
".write": "auth != null",
}
}
}
}
}
}
}
```
- If you are going to use the Firebase hosting service, delete these files: `.firebase` folder, `.github\workflows` folder, `.firebaserc`, `firebase.json` and `database.rules.json` and follow the deployment instructions from the official Firebase documentation here;
- If you use your GitHub project to deploy, put the Firebase environment variables on the GitHub platform, follow the documentation here.## Todo
- [x] Enviroment
- [x] Layout
- [x] Autentication Firebase
- [x] Firebase Roles
- [x] Create Room
- [x] Create Questions
- [x] Levels Admin/User
- [x] Features Admin Rooms
- [x] Deploy Firebase
## Next Level
- [x] Theme Dark/Light
- [x] Responsible mode
- [ ] New features coming soon
- [ ] Login link for unregister user
## Roadmap
- [x] Stage 1 => together
- [x] fundamentos ReactJS- [x] Stage 2 => unidade
- [x] imutabilidade
- [x] ContextAPI
- [x] UseState => leaft state up
- [x] spreadprops => elements
- [x] Stage 3 => em busca de evolução
- [x] firebase autorização: 32:48
- [x] montando tela para criar sala: 44:29
- [x] montando tela para criar pergunta: 1:01:28
- [x] consumindo perguntas firebase: 1:13:47- [x] Stage 4 => legado
- [x] themecontextprovider
- [x] componente criando perguntas: 8:32
- [x] desestruturando objetos para consumir: 10:23
- [x] JSON.stringify{objeto}
- [x] algoritmo de reconciliação: 18:30
- [x] criando hook para consumir sala: 21:50
- [x] montagem de sala admin: 26:55
- [x] encerrando sala +plus (gap): 30:16
- [x] aprendendo uns segredos (restoperator): 30:30
- [x] montando like/funcionalidades para perguntas: 30:40
- [x] slint => verificação de objetos dentro de objetos
- [x] dependência de hooks / unsubscribe: 51:55
- [x] remoção de pergunta: 1:02:27
- [x] encerrar sala: 1:06:54- [x] Stage 5 => juntos no próximo nível
- [x] sass rules
- [x] firebase-tools
- [x] firebase deploy## Tips
- [x] Record para tipar objetos
- [x] Sass rules
- [x] useEffect / Hooks
- [x] Spreadprops## Contributing
Thank you for being interested in making this package better. We encourage everyone to help improve this project with new features, bug fixes, or performance improvements. Please take a little bit of your time to read our guide to make this process faster and easier.
- Clone this repository: `git clone https://github.com/araguaci/nlw-together-reactjs.git`
- Create a branch with your feature: `git checkout -b my-feature`;
- Commit your changes: `git commit -m 'feat | my new feature'`;
- Push to your branch: `git push origin my-feature`.## License
MIT [License](https://github.com/araguaci/nlw-together-reactjs/blob/main/LICENSE) | Made by: [Araguaci](https://github.com/araguaci)