This project is not made for the purpose of testing my skills. The project has authentication and authorization functionalities, where the user can add his own book, edit book, and delete his own book. It can also search for books from other users.
The first thing you need to do is create a database on mongoDB or download it locally and configure it.
- Clone repository to your local environment
git clone https://github.com/ktvrdinic/bookstore.git
- Configure MongoDB and fetch connection URL (Tutorial how to connect MongoDB with Node)
- SetUp env variables.
- DATABASE (Set MongoDB URL fetched from 2.)
- SECRET (Set Secret for your JWT token)
- Enter to your cloned folder and install packages on server
yarn
- Install packages on client (run: cd client; yarn)
cd client
yarn
- Start your app on servert then on client (run: yarn start)
yarn start
cd client
yarn start