Giter Club home page Giter Club logo

nem-week6-book-sharing's Introduction

FACN7 Book Sharing

A group project for Founders and Coders Nazareth, week 6

Link to Heroku

Link to our schema

how to install

You can clone the repo by typing the command

> git clone https://github.com/FACN7/nem-week6-book-sharing.git
> cd nem-week6-book-sharing
> npm i
> google-chrome index.html

how to test

(WHEN WE HAVE TESTS HAHA)

Install tape and tap-spec

> npm i tape -D
> npm i tap-spec -D

Run the test command

> npm test

user journey

As a member of Founders & Coders who has a book I would like to share...

  • I can add a book to the database As a member of Founders & Coders who is interested in borrowing a book...

I can browse for available books

  • I can reserve a book for certain dates
  • I can unreserve a book

our process:

  • Set up project architecture
  • We were considering making 2 tables in our database, but ended up making three: Students, Books and Bookings
  • Set up a server
  • Set up a database
  • Host on Heroku incl database
  • Display the list of books from DB in DOM (+availability)
  • Add search by title
  • Add a book on client side
  • Borrow - return mechanics
  • CSS
  • Tests

Stretch goals:

  • Autocomplete
  • Several reservations per book
  • Codecov and Travis

new stuff we've learned

  • POST and GET requests to the server on a project with a database
  • Made it working with XMLHttpRequest method
  • Hosting a DB on Heroku
  • Protected out inputs against script injections

nem-week6-book-sharing's People

Contributors

ebraheemabbas avatar mcorcias avatar nataphilips avatar

Watchers

 avatar

Forkers

ebraheemabbas

nem-week6-book-sharing's Issues

Node modules

Node modules is never pushed never do add . you need to know what are you adding to production

folder structure

you have nice folder structure its easy to navigate your code according to the need

auto complete

since you havent pick good names that explain it would be nice to have comments your code on autocomplete may be good regarding functionality and efficient but it is definitely very hard to read when you work with teams you have to explain the code and the code flow is it would be nice to have some comments explaining the code .
I want to point out how important is to write readable code it is as important as writing the code itself it is like producing a machine that does something without producing a manual on how to use it...

validation

check if inputs empty before adding new book

Config.env

Config env shouldn't be pushed to the master it has your params to access database this is a fatal practice

Readme

its nice that you have a readme, it made my life easier because it includes running your project instructions .

lacking feedback

borowing a book gets to a page
is it successful ? did it fail? why go to a broken page?

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.