Skip to content

hadeyici/bookcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookcase

Description

Nodejs library case with Express, Mongoose, and MongoDB support to develop REST API.

Getting Started

  1. Clone repository
> git clone https://github.com/hadeyici/bookcase.git 
> cd bookcase
  1. Install project dependencies
> npm install
  1. Run application
> npm run dev
  1. Run tests
> npm run test

GET Routes

http://localhost:3000/users

  • post users
  • get users
  • get users/1
  • post users/1/borrow/bookId
  • post users/1/return/bookId

http://localhost:3000/books

  • post books
  • get books
  • get books/1

Project Structure

├── config
│   ├── env
│   │   ├── development.js
│   │   ├── index.js
│   │   └── production.js
│   └── mongoconnect.js
├── src
│   ├── bin
│   │   └── www.js
│   ├── controller
│   │   ├── book
│   │   │   ├── book.js
│   │   │   └── index.js
│   │   └── user
│   │       ├── index.js
│   │       └── user.js
│   ├── helpers
│   │   ├── book.js
│   │   ├── borrow.js
│   │   └── user.js
│   ├── models
│   │   ├── Book.js
│   │   ├── Borrows.js
│   │   └── User.js
│   ├── routes
│   │   ├── api
│   │   │   └── index.js
│   │   └── index.js
│   └── app.js
├── tests
│   ├── books.test.spec.js
│   └── users.test.spec.js
├── README.md
├── package-lock.json
└── package.json

About

A REST API for library case

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published