GithubHelp home page GithubHelp logo

carebnb's Introduction

Hi , I'm Alexis

carebnb's People

Contributors

alexis-l8 avatar samatar26 avatar smarthutza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

smarthutza

carebnb's Issues

Create Sign up route/page

There should be 2 main sign up options, namely:
1 - Oauth, where a user can sign up using their social media account, e.g. GitHub, Facebook, Google, etc..
2 - Signing up using our website/service, where the user will have to create an account

Setup database

We have to setup the database which will contain the tables of the homeowners and homeseeker's profiles. We also need a table which will describe the preferences of the homeowners.

Signup form

Just a UX kind of thing, but when I tab through the form to the date field, the years start at 0001. You might want to set it to start at a more sensible year? ;)

Create The Questionnaire route/pages

We have to create the pages which will ask the potential homeseeker a list of criteria, which we will then use to filter and display the homeowners who will be the best probable match.

get_data.js

Good things about this:

  • I like that these are nice short self-contained functions, and that they are separated from the rest of your code. So far, your file structure seems quite logical and easy to understand.

Not so good:

  • You export only this one variable, which at first glance is an empty object... const dataFromDatabase = {};
  • You could export the same data without mutating that object if you declared each function independently first, and then exported them in a new object (does that make sense?)
  • The queries are quite hard to read because they are long and much wider than my screen. I would recommend saving all your queries as simple strings, and then just having variable names in your functions. You could put them either at the top of this file, or in their own queries.js file.

Signup is dead end

Also just a UX thing, but after signing up I don't go anywhere :( in fact, i get redirected to a formspree page.

You should want to keep me on your site!

post.js

Similar issues here to in #75

You use destructure the object you pass in and get quite a lot of data out of it. Then you don't do anything very complicated with that data.

For the sake of keeping it short, why not not desturcture it, and instead just write a helper function to construct the array that you pass into your DB query?
Like...

const makeArray = obj => [ obj.first_name, ...  etc ]

Post code validation

I entered an abbreviated (therefore according to your logic) invalid postcode. This resulted in a 404.

Up to you, and maybe just my opinion, but I would probably validate this kind of input in the browser.

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.