A full-stack web application for managing a personal book collection. The application allow users to add new books to their collection, view the list of books they have.
-
clone this repo by typing this command in your terminal:
https://github.com/Nader-SH/Tech-Assessment-Task.git
-
Run in your terminal
npm i
to install packages for the app as general. -
Run
cd client
andnpm i
to install the packages for the client side Vue Js.
make sure you have installed PostgreSQL and pgcli
CREATE DATABASE {database name};
CREATE USER {user name} WITH superuser password {password}
ALTER DATABASE {database name} OWNER TO {user name};
- Run the following command in the database pgcli terminal
npm run buildDB
to build database with its tables.
Environment variables are one of the ways we keep our product secure. If you want to access our app locally you will need to add your own.
- create .env file at the root of your project
- add your Environment variables
DEV_DB_URL= Your development PostgreSQL connect
PORT= Your Port to back end server
SECRET_KEY= Your token Secret key
API_SECRET= Your cloudinary key
CLOUD_NAME= Your cloudinary Cloud Name
API_KEY= Your cloudinary key
- the DEV_DB_URL be like
postgres://username:password@host:port/databasename
.