https://github.com/nearhuscarl/shop_app
https://github.com/nearhuscarl/shop_app
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nearhuscarl/shop_app
- Owner: NearHuscarl
- Created: 2019-09-08T09:56:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T01:48:02.000Z (about 6 years ago)
- Last Synced: 2025-01-04T03:10:30.918Z (9 months ago)
- Language: Dart
- Size: 647 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shop App
This app is used to show how state management works in Flutter using Provider package
## Setup Firebase
- Create a firebase database in the console
- Go to `Authentication` > `Sign-in method` > Enable `Email/Password`
- Go to `Database` > `Rules` and add the following lines:
```
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
//".read": true,
//".write": true,
".read": "auth != null",
".write": "auth != null",
"products": {
".indexOn": ["creatorId"]
}
}
}
```
- Create a new file called `.env` in the root folder of the project and then add:```
DATABASE_URL=
API_KEY=
```## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.