Giter Site home page Giter Site logo

mertdaver / booknotes-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coding-man-chen/booknotes-website

0.0 0.0 0.0 3.2 MB

A project to let me get more experience in node express and postgreSql

JavaScript 16.80% CSS 30.69% EJS 52.52%

booknotes-website's Introduction

Booknotes-website

A project to let me get more experience in node express and postgreSql. Users can give review and rate books by entering the ISBN code of the book through this web page. The software will automatically search for the data name and cover image, and the data will be stored in PostgreSQL database. Users can also modify and delete reviews, and edit existing Some reviews are sorted by time and rating.

Demo

I have deployed a demo in Render, anyone can try it when he wants:)
Demo: https://notebook-project.onrender.com/

Installation

$ npm install

Database

Users need to configure it in their own postgresql. First, users need to modify the database information in the index.js file.

const db = new pg.Client({
    user:'xxx',
    host:'xxx',
    password:'xxx',
    port:xxx,
    database:'xxx',
});

Then execute the following sql code in postgresql

CREATE TABLE notes
(
    id integer NOT NULL DEFAULT nextval('notes_id_seq'::regclass),
    name text COLLATE pg_catalog."default" NOT NULL,
    published_date date NOT NULL,
    rate integer,
    note text COLLATE pg_catalog."default" NOT NULL,
    isbn text COLLATE pg_catalog."default",
    CONSTRAINT notes_pkey PRIMARY KEY (id),
    CONSTRAINT notes_rate_check CHECK (rate > 0 AND rate <= 10)
)

Effect

image image

booknotes-website's People

Contributors

coding-man-chen avatar crc729178954 avatar

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.