-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
102 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ __pycache__/ | |
|
||
# Environment | ||
.week89 | ||
.env | ||
|
||
# Data | ||
data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,98 @@ | ||
# KAIM-W8-9 | ||
KAIM Weak 8 and 9 Challenge | ||
|
||
## **Steps to follow** | ||
|
||
* Clone the repository | ||
|
||
```python | ||
|
||
git clone https://github.com/tedoaba/KAIM-W8-9.git | ||
cd KAIM-W8-9 | ||
|
||
``` | ||
|
||
* Create a virtual environment | ||
|
||
```python | ||
|
||
python -m venv .venv | ||
|
||
``` | ||
|
||
* Create .env file and add the following | ||
|
||
```python | ||
|
||
ENVIRONMENT="Development" | ||
FLASK_SECRET_KEY='your secret key' | ||
|
||
DATABASE_URL=postgresql://database:password@host:port/db_name | ||
|
||
``` | ||
|
||
* Install all the requirements | ||
|
||
```python | ||
|
||
# install dependencies | ||
pip install -r requirements.txt | ||
|
||
``` | ||
|
||
* Install tailwindcss in the `app` directory | ||
|
||
```python | ||
|
||
# go to fraud directory | ||
cd app | ||
|
||
# Tailwind CSS | ||
npm install tailwindcss | ||
|
||
``` | ||
|
||
* Create `tailwind.config.js` file | ||
|
||
```python | ||
# create tailwind.config.js file | ||
npx tailwindcss init | ||
|
||
``` | ||
|
||
* Copy and add the following to `package.json` file so that your css will be updated every time you make a change | ||
|
||
```python | ||
|
||
"scripts": { | ||
"create-css": "npx tailwindcss -i ./static/src/input.css -o ./static/css/main.css --watch" | ||
} | ||
|
||
``` | ||
|
||
* Initialize tailwindcss | ||
|
||
```python | ||
|
||
# Run the following every time you update tailwind css | ||
npm run create-css | ||
|
||
``` | ||
|
||
* In a separate terminal, in the parent directory, initialize the database | ||
|
||
```python | ||
|
||
# Initialize database | ||
python -m flask --app app init-db | ||
|
||
``` | ||
|
||
* Run Flask App | ||
|
||
```python | ||
|
||
# Run flask | ||
python -m flask --app app run --port 8000 --debug | ||
|
||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,8 @@ imblearn | |
tensorflow | ||
shap | ||
lime | ||
mlflow | ||
mlflow | ||
flask | ||
click | ||
flask_sqlalchemy | ||
Flask-Migrate |