Coder Social home page Coder Social logo

wt000 / new-forest-energy Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 12.76 MB

A mobile-friendly webapp for easy tracking of home energy usage.

Home Page: https://new-forest-energy.vercel.app

License: GNU General Public License v3.0

JavaScript 3.96% CSS 2.02% TypeScript 94.02%

new-forest-energy's People

Contributors

5hawks48 avatar jorandall avatar ryangaudion avatar seanypollard avatar sophia-attrill1 avatar wt000 avatar

Watchers

 avatar

new-forest-energy's Issues

Agency API

API access for calculating total cost for a stay / booking.

Possibly: /api/bookingID/totalcost

Extras such as /api/bookingID/energyuse (returns all readings within the stay duration) and /api/bookingID/energyuse (returns last or average energy usage) could be considered.

Remove Hero Icons

Remove hero icons from project.
New icon package to be researched and installed at a later date.

Agency, homeowner & delegate logins

Note that this does not include visitors due to their seperate (booking ID redirect) system.

  • - [x] Update db design and schemas to have the following:

User:
IsAgency 
Remove role (it will be calculated depending on the page they're on)

Home:
Delegates []

  • getRole method (User, Home) & maybe Route though may not be needed (user id, home id) - determines what the given user role is to the given home object (returns ENUM of not logged in guest, delegate, homeowner, agency)
  • GitHub login (with extended profile)
  • Simple test data
  • Extend example page, showing how to access user session, getRole example, home associated to, etc

TruffleHog scanning

TruffleHog security scanning, add this sooner rather than later (otherwise revealed secrets may be harder to remove)

Component & API/Function - Infinite Scroll Readings

Use POC infinite scroll code and make it function with real readings.

  • Reading component
  • Seed readings for a home (just make a fake home & tons of fake readings for it)
  • Page for homes (just get the home and show some basic info)
  • Infinite scroll through readings of a home (fetch from offset api or function)

Add isDeleted to db

Ensures deleted homes and bookings are not entirely removed. Instead, they are archived.

Create database

Create the Mongo database

  • Mongoose schemas
  • Connection js (dbcon)
  • Database on mongo (online)
  • Test route on Next API

Setup GitHub

Simply setup the GitHub and prepare it for use.

DB Designs

Add prototype designs to the project.

Component - toast

Toast component with absolute positioning and fading after 5 seconds

Image

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.