GithubHelp home page GithubHelp logo

mickgeek / schedule Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 82 KB

Python 3.9 + Angular 13 (with Angular Material) + JWT implementation + SQLite

JavaScript 1.07% CSS 0.32% HTML 7.59% TypeScript 45.07% Dockerfile 0.31% Shell 0.29% Python 45.36%
angular javascript jwt material python sqlite

schedule's Introduction

Schedule

The application based on pure Python and Angular (the Google's JavaScript framework). With Schedule everyone can define, get, update and remove personal tasks.

Installation and Configuration

Install Docker Engine and Docker Compose to run the project through Docker. But it is not necessary, should to understand the logic: the ./server directory refers to Python, the ./client directory refers to Angular.

Before running, need to configure some environment variables.

Server Side

Edit the ./server/src/env.py file.

Databases

  • production_database_uri - the URI of the production database
  • development_database_uri - the URI of the development database

CORS

  • client_endpoint - the URI of the client side

JWT

  • jwt_expiration_time - the time in seconds then the JWT will expire

Client Side

Edit the ./client/src/environment/environment.prod.ts and ./client/src/environment/environment.ts files.

CORS

  • serverEndpoint - the URI of the client side

Local Configuration

  • beginningDate - the date from which should to begin the task list creation

Launching

Execute the docker compose up command from the ./docker directory and then create the development database with the docker compose exec -w /home/schedule/server/src python python -m init create development command. Check your browser page, the request to http://0.0.0.0:3000 should be successful.

Tests must be run using the docker compose exec -w /home/schedule/server/src python python -m init test and docker compose exec -w /home/schedule/client node npm run test commands for server and client sides respectively.

Commands

In addition to standard the Docker commands, the Python part have the init module.

Server Side

  • docker compose exec -w /home/schedule/server/src python python -m init production create - create production database
  • docker compose exec -w /home/schedule/server/src python python -m init production delete - drop production database
  • docker compose exec -w /home/schedule/server/src python python -m init development create - create development database
  • docker compose exec -w /home/schedule/server/src python python -m init development delete - drop development database
  • docker compose exec -w /home/schedule/server/src python python -m init test - run tests

Client Side

  • docker compose exec -w /home/schedule/client node npm run start - launch the application
  • docker compose exec -w /home/schedule/client node npm run build - build the application
  • docker compose exec -w /home/schedule/client node npm run test - run unit tests

schedule's People

Contributors

mickgeek avatar

Stargazers

 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.