Code Monkey home page Code Monkey logo

flask-test-admin-panel's Introduction

Admin Panel

Table of Contents

About

This is a self-educational project created only for sake of trying to build a simple CRUD project using the Flask framework.

It consists of the two parts:

Server runs a RESTful API and SSR web-app.

Client, in turn, provides a simple terminal-based access to the RESTful API provided by the server.

Requirements

Exact versions used in development are specified in the requirements.txt.

Running

To run server or client you must firstly set your working directory to the src. When you are ready, proceed to the following sections.

Server

To run server with the default options simply execute the following command in your terminal:

python3 -m server

You can additionaly pass a one or more arguments to the server. The following table contains a list of available options with their default values and description.

Option Allowed Arguments Default Value Description
-h, --help - - show help
--web-url-prefix str "/" URL prefix of the web-app
--api-url-prefix str "/api" URL prefix of the REST API
--secret-filename str "secret.key" filename of the secret key
--secret-len int in range [1, 2^16) 64 length of the secret key
-p, --port int in ragne [0, 2^16) 8000 port number
-s, --storage-type "picle" or "sqlite3" "picle" type of the storage to be used
--pickle-storage-dirname str "db.pickle" name of the directory pickle storage uses to store database
--sqlite3-storage-filename str "db.sqlite3" filename of the Sqlite3 database
-d, --debug - - enables debug mode

Client

To run client with the default options simply execute the following command in your terminal:

python3 -m client

You can additionaly pass a one or more arguments to the client. The following table contains a list of available options with their default values and description.

Option Allowed Arguments Default Value Description
-h, --help - - show help
-a, --address str "http://localhost:8000/api" server's REST API address

flask-test-admin-panel's People

Contributors

maksim2498 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.