Giter Club home page Giter Club logo

hellobooks's Introduction

helloBooks

License Build Status Client Coverage Coverage Status Code Climate

A Library app

Hello books is an application that provides users with access to books from wherever they are. Being a virtual library, users can borrow and read their favorite books using any device. HelloBooks exposes RESTful API endpoints such that anyone can customize their method of consuming the resources.

Built With

  • NodeJS - A JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.
  • PostgreSQL - A powerful, open source object-relational database system.
  • Sequelize - A promise-based ORM for Node.js v4 and up. It supports the dialects PostgreSQL, MySQL, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
  • ExpressJS - Fast, unopinionated, minimalist web framework for Node.js.
  • Reactjs - A declarative component-based JavaScript library for building user interfaces

Getting Started

# Clone your fork of this repository

# Ensure NodeJS, PostgreSQL and Sequelize cli are globally installed

# Switch to project directory
cd helloBooks

# Install dependencies
npm install

# Set up environment variables
Follow the template in .env.example

# Run database migrations
npm run migrate:dev

# Start the app
- In development mode, run the following from two separate terminal windows/tabs
npm run start:client
npm run start:dev

navigate to http://localhost:8080 in your browser

- For production build, run:
npm run build
then
npm run start

Features

  • Authentication is via JSON Web Tokens
  • Login/Sign up to gain access to routes
  • A library of books from different categories
  • Ability to borrow books repeatedly
  • Track your reading/borrowing history
  • Admin access to add and modify book details

API Documentation

Testing

For client-side tests, run npm run test:client

For server-side tests, run npm run test:server

For both, run npm test

For end to end tests, start by running npm run e2e-setup

Then start the client by running npm run start:client.

In another terminal window, run npm run start:server:e2e to start the application server in test-mode.

In a third terminal window run npm run e2e-server to start the selenium server.

In a fourth terminal window run npm run test:e2e

Contributing

Hello books is open source and contributions are highly welcomed.

If you would like to contribute, follow the instructions below.

  • Fork this project.
  • Checkout a new branch
  • Make your changes and commit.
  • Keep commit messages atomic.
  • Raise a pull request against development.

NB: All Pull requests must be made against development branch. Pull Requests against master would be rejected.

See project wiki for coding style guide, commit message, pull request and branch naming conventions.


Acknowledgments


License

This project is published under the MIT License. Ckeck the License.md for details.

hellobooks's People

Contributors

segunolalive avatar oredavids avatar saqibameen 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.