Giter Club home page Giter Club logo

daddydrac / vuejs-flask-docker Goto Github PK

View Code? Open in Web Editor NEW
35.0 1.0 17.0 2.14 MB

Test driven docker solution using VueJS, Flask REST Plus, PostgresSQL, with swagger, prebuilt authentication+JWT's running on NGINX/https using material ui design

License: MIT License

Shell 0.25% Python 64.10% Dockerfile 1.73% Mako 0.66% JavaScript 8.18% HTML 1.14% Vue 23.93%
vuejs3 vuejs-router vuetify material-design flask-restful docker-compose authenticated-encryption swagger test-automation test-driven-development

vuejs-flask-docker's Introduction

Flask REST Plus, VueJS, and automated unit testing via Flask CLI

Test driven docker solution using VueJS, Flask, PostgresSQL, with swagger, & prebuilt authentication+JWT's running on NGINX/https

1. Getting Started

docker-compose up -d --build

2. Seed Postgres DB with Flask CLI

docker-compose exec backend python manage.py create

docker-compose exec backend python manage.py seed

The default login creds that seed the db are:

User: [email protected]

Pass: supersecret

3. The VueJS UI will be on:

https://localhost:4433/

4. The backend API routes will be on:

https://localhost:4433/<api route>

5. Then see the json returned from the users API route here:

http://localhost:5001/users

6. Run automated unit tests

docker-compose exec backend pytest "project/tests" -p no:warnings --cov="project"

7. Swagger URL

http://localhost:5001/swagger


In case you need to regenerate SSL keys

Open the command line and run these commands inside the services/nginx/ssl folder to generate a self signed certificate:

openssl req -new -newkey rsa:1024 -x509 -sha512 -days 365 -nodes -out nginx.crt -keyout nginx.key

openssl dhparam -out dhparam.pem 1024


vuejs-flask-docker's People

Contributors

aktiver avatar caeser1996 avatar daddydrac avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.