Skip to content

Commit

Permalink
Add db_access imports + try README badge
Browse files Browse the repository at this point in the history
  • Loading branch information
nnayk committed Dec 4, 2023
1 parent e60cd9e commit f674137
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 40 deletions.
10 changes: 7 additions & 3 deletions Backend/backend.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import os
from flask import Flask, request, jsonify
from flask_jwt_extended import JWTManager, \
create_access_token, jwt_required, get_jwt_identity
from flask_jwt_extended import (
JWTManager,
create_access_token,
jwt_required,
get_jwt_identity,
)

import requests
from flask_cors import CORS, cross_origin
Expand All @@ -21,7 +25,7 @@
cors = CORS(app)
app.config["CORS_HEADERS"] = "Content-Type"

app.config['JWT_SECRET_KEY'] = "CHANGE_TO_SECURE_KEY"
app.config["JWT_SECRET_KEY"] = "CHANGE_TO_SECURE_KEY"
jwt = JWTManager(app)

DB_ACCESS_URL = ( # This is where db_access.py is running.
Expand Down
4 changes: 2 additions & 2 deletions Backend/db_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import secrets
from mongoengine.errors import DoesNotExist

# from dotenv import load_dotenv
from dotenv import load_dotenv

# load_dotenv()
load_dotenv()

import os

Expand Down
53 changes: 18 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Picture Perfect Project

(https://github.com/grant-baer/docs/actions/workflows/main.yml/badge.svg)

# Picture Perfect Project

## Code Style Guide

Expand Down Expand Up @@ -78,15 +78,15 @@ After installing the plugins, configure your settings to format on save, which c

```json
{
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"next",
"next/core-web-vitals"
],
"prettier.disableLanguages": []
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"next",
"next/core-web-vitals"
],
"prettier.disableLanguages": []
}
```

Expand All @@ -101,30 +101,13 @@ For other IDEs, please refer to the respective plugin installation and configura
Remember to commit the style configuration files for ESLint and Prettier (`.eslintrc`, `.prettierrc`, etc.) to your project repository so that all contributors use consistent settings.

**Considerations**

- User Auth
- Interface
- sign in
- user portfolio
- image generating (on users own portfolio)
- voting
- leaderboard (best creator/image)
- API cost
- estimate cost for Klingenberg to cover
- Image storage
- use urls for faster loading speed
- openAI can host image URLs


**Programs:**
Python Flask (Backend),
- Interface - sign in - user portfolio - image generating (on users own portfolio) - voting - leaderboard (best creator/image)
- API cost - estimate cost for Klingenberg to cover
- Image storage - use urls for faster loading speed - openAI can host image URLs

**Programs:**
Python Flask (Backend),
React via next.js (Frontend)
MongoDB (DB)









0 comments on commit f674137

Please sign in to comment.