/Tech-Assessment-Task

Tech Assessment Task For Onex

Primary LanguageVue

Tech-Assessment-Task


Logo

Tech Assessment Task For Onex




Description:

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.

Onex - Beginning of the technical assessment _ DrawSQL - Google Chrome 8_10_2023 9_44_10 PM (2)

Getting Started

📌 How to launch app locally :-

  • 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 and npm i to install the packages for the client side Vue Js.

Database Setup 📋

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:

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.

Technologies

Programmer