Kitabghar is a simple single page application (SPA) that lets you buy all the books that are available in the store. You can also see all of your purchased books history. Find books based on Title, genre, publisher, ISBN.
It uses number of open source projects to work:
- MongoDB - Free and open-source cross-platform document-oriented database
- Mongoose - Elegant MongoDB object modeling for NodeJS
- NodeJS - Evented I/O for the backend
- ExpressJS - Fast, unopinionated, minimalist web framework for NodeJS
- JSONWebToken - Used for authorization
- Angular - Platform that makes it easy to build applications with the web
Book Store requires
To start the database (port: 27017): Install MongoDB, open new cmd window (in project root) and run
$ cd server
$ start-mongodbTo add initial seeding: (do this step once only the first time you start the app) After you start MondoDB open new cmd window (in project root) and run
$ cd server
$ seedBooksTo start the server (port: 8000): open new cmd window (in project root) and run
$ cd server
$ npm install (if you havent already installed the dependencies)
$ npm startTo start the client (port: 4200): open new cmd window (in project root) and run
$ cd client
$ npm install (if you havent already installed the dependencies)
$ ng serve-
Anonymous users
- Login/Register
- View all books
- View books details
-
Authenticated users
- Buy books
- Rate books
- View user profiles
- View his own purchases history
-
Admin users
- Add books to the store
- Edit books
- Delete books
MIT