Git Product home page Git Product logo

myblog's People

Contributors

dependabot[bot] avatar m-flak avatar

Watchers

 avatar

Forkers

russiancode

myblog's Issues

Frontend does not resolve relative backend links

Frontend does not resolve relative backend links

Cause: util/backend.js


Providing a relative path for REACT_APP_BACKEND_URL does not work. Embarrassing, but whatever.
Currently, a url such as: http://ip:port/ must be provided.

Rewriting the URL code will fix this.

Successive Requests to Server's PostsRoute Occasionally Receive Empty Post Lists

Affected Components:


Description:

It seems that successive requests to the backend's PostsRoute at /posts will occasionally result in an empty response, but this does not always happen!

I'm not sure why this is happening, and it is extremely frustrating.

This bug causes some or all of the frontend components to fail. We'll either see the posts and an empty post-by-month list or vice versa. HOWEVER, sometimes everything works as it should.

Workaround:

Refreshing the heck out of the home page until things show up. This is unacceptable! ๐Ÿ˜ 

Implement database connection pooling.

Implement database connection pooling. (See #1)

#1 was caused by no connection pool for the database connection.

Connection pooling must be implemented to allow the backend to actually work properly.

Because currently, multiple connections all at once will result in undesirable behavior, like on the Home Page. Posts and the Post List pages work fine.

Frontend deployment to a subdirectory.

Frontend deployment to a subdirectory.


The frontend react app is limited in the way it can be deployed. Deploying the react app in a subdirectory doesn't work because of react-router.

Currently, the front can be deployed in a server's root, ex: http://whatever.com/.

The code shall be first examined, and if no fix can be made, I'll just dockerize the frontend. ๐Ÿ˜„

I, personally, must deploy my blog in a subdirectory on my production server, but if you don't, everything should work just fine.

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.