Git Product home page Git Product logo

homethings's People

Contributors

ytsruh avatar

Watchers

 avatar

homethings's Issues

Create user favourities

Let users add favourites & show favourites on homepage. Add additional model that links to each user

Fix TypeScript Implementation

Currently having to use a flag in next.config.js to ignore TS build errors.

Types/Interfaces need declaring in the API files

Switch Mongoose to Prisma

Using mongoose to access database but Prisma is a more robust and long term solution. Can also add Schema validation by using Zod library

API Logic for getServerSideProps

Have currently built all logic for the API's but currently these are accessed with client side rendering. Would be better to break out the logic into function exported from the API file so it can be used in getServerSideProps

Good example of this would be fetching movies & shows data

Version 0.9

To do list

  • Adding support for books
  • Updated Next 13
  • Removed TRPC
  • Added Prisma JSON feature flag
  • Add cache layer to API
  • Sort out dual auth for NextAuth & Custom JWT
  • Zod & ENV variables
  • Add Types to API from Prisma models

Enable TS strict:true

Currently set to false and should be moved to true to ensure type safety at build time

Update Icons

Mobile app makes use of Github Octicons, update the web app to the same.

Feature: Enable/Disable features

Allow users to configure settings to enable/disable certain parts of the app they do or do not want.

Possible solution:

  • Add to user object and store in local storage when logging in.
  • Can update local storage & API on update/changes
  • Settings deleted on logout
  • Settings overwritten on login

Create users bug

The create users route and function does not hash passwords & therefore a user cannot login

Handle incorrect login

Currently there is no feedback to the user when their login fails, the page just reloads.

Show banner/notification to say it failed

Content not loading

Env variable for Digital Ocean is correct but the path was set in the code.

Auth bug on web app

After changing the auth to work for both web & mobile the desktop app now has a small bug. When a user is not logged in and tries to visit the homepage, the app now throws an error instead of redirecting the user to the login page.

There is a getServerSideProps request on the homepage which is creating the error. Best solution is to use the standard auth items from Next-Auth on these serverside functions since they can only be accessed using NextJS & serverside - eg the mobile app will not be able to not be able access them do they dont need auth for that.

V0.10 To Do List

  • Add 'Accounts' model with 'Users'. Current approach doesn't allow items to be shared across multiple users
  • Add 'Documents' model. Important files that can be shared across accounts.
  • Remove movies & shows data & models
  • Remove references to 'any' in TypeScript

Switch from MongoDB to MySQL

App is curently using a seperate CosmosDB / MongoDB instance with no real need. Switch to MySQL to make use of existing database server with own user.

Use Data Factory for data migration

Use React Context API for Authentication

Current login functionality just uses standard state to manage the auth process and stores in local storage. Better to use Context API and extrapolate all logic into a single file/component.

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.