8000 GitHub - antherkiv/billboard-cinema: A full stack web solution based on falcon and react (demostrative porpouses)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A full stack web solution based on falcon and react (demostrative porpouses)

License

Notifications You must be signed in to change notification settings

antherkiv/billboard-cinema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Billboard cinema

NOTE: falcon-jwt-checker must be install from my fork to actually works (it's on requeriments.py)

pip install git+https://github.com/Antherkiv/falcon-jwt-checker.git

It remains to add security policies use a RSA key instead a string on JWTs, and do tests with owasp zap.

This it's intended to be a monorepo that stores microservices written in python and a pure ES mashup:

  1. Registration and authentication
  2. Movie description
  3. Comments (Generic comments)
  4. Very simple file handler sever

The server it's implemented with:

  1. Falcon
  2. Marhsmallow
  3. SQLAlchemy
  4. JSON Web Token
  5. Argon hasher
  6. Etc.

Mashup:

  1. ES6 - ES7 as loading language
  2. React as render engine
  3. React Waterfall
  4. ReactStrap
  5. Formik
  6. Slatejs
  7. My own slatejs plugins
  8. React date picker
  9. React drop zone
  10. Axios and so...

Steps:

  1. Ensure you have or install in your OS:

Python 3.7 Postgres 10.5 (Run the server) Quote break.

  1. Ensure you have installed and cofigured mkvitualenvwrapper (this is a very fast and easy way to have python envs)
  2. Make a python virtual environment
	(11:00:01) ~/ ❯❯❯  mkvirtualenv ia
  1. clone the project and go to the root folder:
	(0:58:23) ~/ ❯❯❯  git clone https://github.com/Antherkiv/billboard-cinema.git
	(0:59:45) ~/ ❯❯❯  cd billboard-cinema
  1. Do the bootstraping of initial state
	(1:05:01) ~/billboard-cinema ❯❯❯  cd sql

First the users db:

	(1:06:46) ~/billboard-cinema ❯❯❯  pg_dump -U postgres db < db.sql

Movies db:

	(1:06:46) ~/billboard-cinema ❯❯❯  pg_dump -U postgres movies < movies.sql

Comments db:

	(1:06:46) ~/billboard-cinema ❯❯❯  pg_dump -U postgres comments < comments.sql
  1. Install python dependencies:
	(1:00:01) ~/billboard-cinema ❯❯❯  cd microservices && pip install -r requeriments.txt
  1. Run the servers in this order (it's important to respect the ports the time not allowed me to setup a most robust url responder or put behind nginx to manages the ports).
(1:00:01) ~/billboard-cinema/microservices ❯❯❯ gunicorn auth:api
(1:00:04) ~/billboard-cinema/microservices ❯❯❯ gunicorn gunicorn movies:api -b 0.0.0.0:8001
(1:03:06) ~/billboard-cinema/microservices ❯❯❯ gunicorn gunicorn comments:api -b 0.0.0.0:8002
(1:03:06) ~/billboard-cinema/microservices ❯❯❯ gunicorn gunicorn files:api -b 0.0.0.0:8003
(1:03:06) ~/billboard-cinema/microservices ❯❯❯ cd ../

That's it, we are done on microservices

  1. Bootstraping the client
	(1:00:01) ~/billboard-cinema ❯❯❯  cd mashup && npm install && npm start (It will give us a server on htp://localhost:1234)
  1. Do the bootstraping of initial state
	(1:05:01) ~/billboard-cinema ❯❯❯  cd sql

First the users db:

	(1:06:46) ~/billboard-cinema ❯❯❯  pg_dump -U postgres db < db.sql

Movies db:

	(1:06:46) ~/billboard-cinema ❯❯❯  pg_dump -U postgres movies < movies.sql

Comments db:

	(1:06:46) ~/billboard-cinema ❯❯❯  pg_dump -U postgres comments < comments.sql

The "admin user" is "antherkiv@gmail.com" The password is "admin"

  1. Do the register (the link is on the top panel)
  2. Enter and go to admin panel:

http://localhost:1234/admin-panel

  1. We are done

About

A full stack web solution based on falcon and react (demostrative porpouses)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0