Navigation Menu

Skip to content

Commit

Permalink
Initialize the flask and vue app
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Mar 24, 2023
1 parent aa7bbd7 commit 33de92f
Show file tree
Hide file tree
Showing 23 changed files with 29,551 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
env/
node_modules
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -9,3 +9,20 @@ CSV-Format: https://github.com/metaodi/openerz/tree/main/csv#format

Gemeinden: https://s.zazuko.com/2cdhrjj
Feiertage:

## Flask application

To run the application:

```
python app.py
```

The vue app is in the `client/src` directory.

To run the vue app:

```
cd client
npm run serve
```
24 changes: 24 additions & 0 deletions app.py
@@ -0,0 +1,24 @@
from flask import Flask, jsonify
from flask_cors import CORS


# configuration
DEBUG = True

# instantiate the app
app = Flask(__name__)
app.config.from_object(__name__)

# enable CORS
CORS(app, resources={r'/*': {'origins': '*'}})


# sanity check route
@app.route('/ping', methods=['GET'])
def ping_pong():
return jsonify('pong!')


if __name__ == '__main__':
app.run()

7 changes: 7 additions & 0 deletions client/.editorconfig
@@ -0,0 +1,7 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
23 changes: 23 additions & 0 deletions client/.gitignore
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 24 additions & 0 deletions client/README.md
@@ -0,0 +1,24 @@
# client

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions client/babel.config.js
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
};

0 comments on commit 33de92f

Please sign in to comment.