Skip to content
 
 

Repository files navigation

ReactBooksPostgresSQL

Link to our application -- Reading data is not working currently, please clone locally

What ?

This week's project involved setting up a database which clients are connected to via a node.js server. We used client data to make a dynamic web app.

A books sharing application where people can add their own books to the database so everyone who is interested in borrowing it can reserve it for certain dates, with the freedom of unreseving it at anytime.

From inside

  • For signing in for the first time into our application, you will be asked to provide us your name, to create for you a username that has your name

How to use locally?

  1. git clone this repo.
  2. git install, if something was missing, please install manually to your machine, reactjs, axios, jsonwebtoken, nodemon.
  3. for nyc tests, nyc npm test.
  4. to deploy the server, we made an easy script for you, just type in your terminal 'npm run connect' and 'npm start', and it will be deployed with nodemon.
  5. Have fun!

Main goals

  • Simple web app with a node server and a database
  • Your database comes with a schema, which should be documented in your readme (along with any other architectural decisions)
  • Database hosted on Heroku, or locally
  • Build script for your database
  • Security concerns appropriately considered (you must protect against script injections!)
  • Content dynamic, but DOM manipulation kept to a minimum
  • Mobile-first design
  • Clear user journey (even if you take one of our suggested ideas, document the user journey in your readme)
  • test your server routes with supertest
  • test your pure functions both server and client side
  • set up a test database so that you can test your database queries
  • authentication

Stretch goals

  • Rating books
  • Books can simultaneously be reserved by multiple users but for different dates

Design artheticture

Design artheticture 01

Tools/technologies used

  • Heroku - For deploying/hosting server and database.
  • ReactJS - single page appilcation.
  • Express JS.
  • Axios Framework.
  • jsonwebtoken - for cookies.
  • PostgreSQL - for database
  • nodemon - for hosting locally.
  • cookies web api - for a simple authentication
  • Node.js - backend.

Creator

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages