This simple web application is written for studying MEAN stack which is used for developing full-stack web applications.
Data for the application is retrieved via The New Yourk Times Books API.
=== ###Downloading application:
- Download/clone a repository NYT-books
- Run in the root directory of the application
npm install
===
###How to run client-side application:
- Go into
/client/src
directory - Run
gulp start
If you don't have npm or node.js installed on your local machine, please, wisit Getting started page and follow the instructions.
If you don't have
gulp
as global dependecy, runnpm install -g gulp-cli
. Here's couple of commads for the client-side application:
gulp start
- deploys application on local server(port 8085) and starts javascript- and sass-watchersgulp server
- deploys application on local server(port 8085)gulp watch
- starts watching all the changes of files with extensions.js
and.scss
inapp/
directorygulp scripts
- concats and minifies all the external files and files fromapp/
directory (files have .js extension) and places result file topublic/js/
directorygulp styles
- compiles.scss
files to.css
, minifies and places result file topublic/css/
directory
===
###How to run server-side application
- Go to
/server/src
directory - Deploy local mongo database (usually run
mongod
command) - Run
node server.js
For successful running server-side application
Python 2.x
is required on your local machine. If you don't have Python 2.x, please, visit Python downloading page
Also you have to install
node-gyp
(runnpm install -g node-gyp
)
And finally install monogodb database on your local machine. Visit Mongodb installation page
===
###Current functionality:
- Home page
- Register
- Log in
- Books page
- Displaying books by their topic
- Changing topic
- Adding chosen book to favorites (data will be stored in cookies)
- Deleting сhosen book from favorites
- Deleting all favorites
- Displaying book on the Amazon
- Update user's profile
- Favorites page
- Displaying favorites
- Displaying addition info about the book
- Deleting chosen book from favorites
- Update user's profile