GithubHelp home page GithubHelp logo

amaroklopcic / portfolio-2021 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 551 KB

Source code for my portfolio which is hosted on https://amaroklopcic.com

HTML 9.42% CSS 9.00% JavaScript 73.46% Python 8.13%

portfolio-2021's Introduction

Amar Oklopcic's Portfolio

This Flask app is built kind of weird. For new apps you can just create new directories with your apps inside them and as long as they have a blueprint.py, the blueprint will get automatically added to the Flask app.

Development quickstart

  1. python3 -m venv .virtualenv
  2. activate the virtual environment
  3. python3 -m pip install -r requirements.txt
  4. export FLASK_APP=init.py
  5. flask run

Development quickstart for react apps inside apps directory

  1. Navigate to desired app directory (e.g. apps/landing)
  2. npm install
  3. npm start

portfolio-2021's People

Contributors

amaroklopcic avatar

Watchers

 avatar  avatar

Forkers

afif1400

portfolio-2021's Issues

Dynamic imports not working in production

Seeing the following error in /var/log/apache2/error.log:

[Mon May 24 05:09:04.421184 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>] mod_wsgi (pid=9918): Failed to exec Python script file '/var/www/portfolio-app/app.wsgi'., referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421234 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>] mod_wsgi (pid=9918): Exception occurred processing WSGI script '/var/www/portfolio-app/app.wsgi'., referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421253 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>] Traceback (most recent call last):, referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421277 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>]   File "/var/www/portfolio-app/app.wsgi", line 7, in <module>, referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421330 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>]     from portfolio import app as application, referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421379 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>]   File "/var/www/portfolio-app/portfolio/__init__.py", line 10, referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421385 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>]     directory = os.listdir(f"{apps_directory}/{app_directory}"), referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421390 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>]
             ^, referer: http://<SERVER_IP>
[Mon May 24 05:09:04.421393 2021] [wsgi:error] [pid 9918:tid 139930638481152] [client <CLIENT_IP>] SyntaxError: invalid syntax, referer: http://<SERVER_IP>

Dynamic imports are working locally with no issues

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.