Coder Social home page Coder Social logo

animehub's People

Contributors

bharatsharma29 avatar bhishekprajapati avatar blacroc10 avatar cstrp avatar danfogelberg avatar darshan1904 avatar hardy07 avatar irfansalim avatar jurajvetrak avatar letohx avatar m-oswal avatar manojna191 avatar mohammadanang avatar moonpatel avatar pafestivo avatar peacexoom avatar rockleemode avatar surajvast1 avatar tirth29 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

animehub's Issues

dockerize the application

Setup dockerfile for both frontend and backend seperately. Frontend image should contain only react. Backend image should contain both the NodeJS server and MySQL server. As a follow up you can also add docker-compose files to manage the containers.

URGENT** fix this error

i have cloned this. but the website is not running. it is throwing this error in the terminal even after following all the steps.

npm run start

start
nodemon server.js

[nodemon] 3.0.1
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting node server.js
Error: Access denied for user ''@'localhost' (using password: NO)
UNHANDLED REJECTION! ๐Ÿ’ฅ Shutting down...
[nodemon] app crashed - waiting for file changes before starting...

HOW TO FIX THIS?

User personalized dashboard

Whenever the user clicks this (Hi, Username) button the user should be redirected to a page where there will be charts and stats about his/her watchlist.

Make proper Alignment

This looks a little weird buttons spreading like this. Also make genre buttons in this section just like in the main genre page(a little bit heightened and add hover effect)
image

Password hashing

Currently, the user's passwords are being stored in the DB as strings which is not a good practice considering security reasons.

We can hash the password and then store the hash in the DB.

Please assign this issue to me under Hacktoberfest, I would like to work on this.

Adjust gradient

The black gradient on animecard should only be applied to the bottom half part of the card.

refactor code in server.js

All the router are implemented in server.js which makes the app clunky. Create a seperate routes directory to make the code more organized.

Enhance Error Handling in app.js for Node.js Server

Description: Introduce code in app.js to robustly handle unhandled promise rejections, uncaught exceptions, and unhandled routes.

Is your feature request related to a problem? Please describe.
In our Node.js server, we've identified instances of unhandled promise rejections, uncaught exceptions, and requests to unhandled routes. These pitfalls can compromise the server's reliability and security. By addressing these directly in app.js, we aim to reinforce our server's resilience.

Describe the solution you'd like
In the app.js:

  1. Unhandled Promise Rejections:

    • Explanation: When we have an error in the .env file then we may encounter the unhandled promise rejection error.
    • Solution: Prevent the server crash by closing the server gracefully
  2. Uncaught Exceptions:

    • Explanation: Exceptions that aren't caught in try-catch blocks might crash the server.
    • Example: Imagine having a console.log(abfgvhgvd)
    • Solution: Integrate a handler in app.js to log it and close the server gracefully
  3. Unhandled Routes:

    • Explanation: Requests to undefined routes can leak information or confuse users.
    • Example: A user who entered wrong route like localhost:3000/api/contests/random-msg
    • Solution: Set up a final route handler to return a standardized 404 Not Found response and inform the user about checking the route

Describe alternatives you've considered

  • For unhandled promise rejections and exceptions, we could use real-time error monitoring tools like Sentry for immediate alerts.
  • For unhandled routes, establishing an analytics tool could give insights into frequent unrecognized route requests, helping to understand user patterns or detect malicious actors.

Additional context
Embedding these error-handling measures into our primary server file, app.js, is crucial for a robust server environment. It aids in preemptively addressing common pitfalls, ensuring a smoother user experience and providing developers with valuable error context.

Made changes in the index.js

Hello There,
Myself Jay Trivedi . I have made changes in the index.js . I have added a token system which will be send to the user at the time of the authentication . When users click the link, your server should validate the token on the backend before confirming the email.

Hope this changes find you well.

Thank you
Regards

Improvements for login and signup screens

I'd suggest changing 'submit' on the register screen to 'register, and Also swap the places of the login and submit to be more intuitive - "continue the same path" should be on the right and "go back/do something else" should be on the left. (Same goes for the login screen)
I already have it done on my branch, you can just assign me the issue if you agree and I'll put up a PR

Misinformative error message on registration

the password field doesn't seem to accept symbols - but it gives the error of Must contain at least one capital letter, small letter and a digit
kept me confused for a bit but then i realized the issue was that i had ! in my password, so the verification proccess need a small adjustment - either modify the message that symbols are not allowed, or allow symbols.

Images in animecard

Images in animecard are not proper and also improve the animation when we hover on an animecard(maybe add time duration)

image

Improve watchlist

User should be able to categorize it's watchlist in three section: finished, watching and aim to see. You could add these kind of buttons:

image

Using Relative paths

I see you're using absolute path inside . Using relative path will be better has the app expands it's easier to maintain

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.