etkirsch / postpyre Goto Github PK
View Code? Open in Web Editor NEWA minimalist stack implementing Python 3.7.5, React 16.8+, and PostgreSQL
License: GNU General Public License v3.0
A minimalist stack implementing Python 3.7.5, React 16.8+, and PostgreSQL
License: GNU General Public License v3.0
Administrator task only.
This task will add Auth0 domain and audience to the webserver. It will also add route protections against unauthenticated users, shown as a preliminary GET route.
auth0.py
/about-self
to the webserver
abort
methodsuccess
#4 Set up Auth0 site and Audience
#5 Create Heroku Dynos and PostgreSQL Resources
Admin task only.
If the user is authenticated, show a numeric input field (default 8, valid range is [1, 255]) and a button. When button is pressed, POST a payload (details below) to the server. Then generate a list of N uniformly random integers from 0 to 128 on server, return to React via the format below and display as table.
Route Details for /random
:
Payload
{
length: 5 // valid range is [1, 255]
}
Result
{
randomized: [1, 29, 13, 245, 100]
}
Note: The /random
route returns a 401 if the user did not pass valid jwt
/random
on webserver
POST
onlyabort(401)
random.uniform
to generate a list of length N, where N is the length
value in the payloadGenerate
/random
on the webserver using the format of the payload above -- length
should be set to the value of the numeric inputNo auth0 stuff -- reminder, add that tomorrow and flesh this out.
Erukar 2.0 requires a webserver that is cable of automatic CI-gated deployments. There are a few options which were considered but we will be moving forward with Python 3.8+, Flask, and SQLAlchemy hosted on Heroku dynos.
./webserver/
in this repository.develop
, qa
, and prod
dyno instances
develop
branch (gated by CI)master
branch (gated by CI) and should have the option to promote to prod
prod
has no automatic deployment and must be promoted from qa
PostgreSQL
resource to all dynos on herokuAll builds for the Heroku develop
and qa
dynos must be gated by CI. We need to add a preliminary testing suite to the webserver code covering all functionality aside from direct routes.
develop
dyno points to develop
branchqa
dyno points to master
branch#2 Create basic Python 3.8 Flask Webserver and Set up Heroku
Administrator task only.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.