Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AUTH_KEY=your_auth_key_here
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.env
env.g.dart
# Miscellaneous
*.class
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# cms_flutter

A mobile app for the app.100xDevs.com

## Environment Setup

To run this project, you need to set up a `.env` file in the root directory of the project. This file should contain the following environment variable:

```
AUTH_KEY=your_auth_key_here
```

Replace `your_auth_key_here` with the actual authentication key provided to you.

## Running the Project

After setting up the `.env` file, you can run the following command to build the project:

```
dart run build_runner build
```

This will generate the necessary files and allow you to run the project successfully.
2 changes: 1 addition & 1 deletion lib/env/env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ part 'env.g.dart';

@Envied(path: '.env')
final class Env {
@EnviedField(varName: 'AUTH-KEY', obfuscate: true)
@EnviedField(varName: 'AUTH_KEY', obfuscate: true)
static final String authKey = _Env.authKey;
}