Table of Contents
This is the backend part the E-Commerce Site linked here. This part contains the database queries and rest-api
This whole frontend is built with the following libraries:
- Node Js
- OracleDB
Here Nodejs is providing the backend server and OracleDB library is used for database query
Follow the step by step installation procedure to install and run this on your machine
Make sure you have node and oracle installed in your device.
NodeJs
: Install Nodejs from here
Oracle
:Install Oracle from here and register for an account of to complete the installation
Yarn
:Go to terminal and run the following command
npm install --global yarn
To check if it is installed properly, run the following command
yarn --version
If you see the version properly, you are ready to go to the next section
VS Code Setup
:(Not mandatory..But very useful for web projects)Install VS Code from here and setup accordingly
-
Clone the repository
git clone https://github.com/PrangonChakraborty-1805085/shopify_backend.git
-
you can also download the zip if you don't have git installed
-
After installation or download go to the repository and open command line.
-
Install yarn packages and node modules
yarn
-
Go to sql plus
-
Enter credentials
username: sys as sysdba password: password
-
Create a new user c##username
create user c##your_prefered_username identified by youer_prefered_password;
grant dba to c##username
here 'your_prefered_username' will be replaced with any username you prefer and same for your_prefered_password
-
The SQL DUMP file is located in
Shopify_Database_Dump.sql
-
Move to a DATABASE GUI ( Datagrip/ Navicat ) according to your preference and Connect to the user you created in step 3
-
Import data from sql file depending upon the GUI or run the sql codes in a new query. This will create an entire database for you
♥️ -
We are ready now for backend action
create a new file .env
in the root directory. And the file should have the followings
DB_USER= YOUR_DB_USER
DB_PASS= YOUR_DB_PASS
DB_CONNECTSTRING=localhost/orcl
PORT=YOUR_FABOURITE_PORT
JWT_SECRET_KEY= a random secret key
If you followed the above then the .env
should look like this
DB_USER= c##your_prefered_username
DB_PASS= youer_prefered_password
DB_CONNECTSTRING=localhost/orcl
PORT= 8800
JWT_SECRET_KEY=asdfajj45o239b
Go to your favourite code editor and run
yarn start
You should find a line in the console..backend server is running at port (the port you provided)..All set
-
Fazle Alahi Mukim - 1805083
-
Prangon Chakraborty - 1805085
-
Tahmid Hasan (তাহমিদ হাসান)
-
Lecturer
▶ Telephone:
Cell: +8801718-765876
▶ Contact:
Department of Computer Science and Engineering Bangladesh University of Engineering and Technology Dhaka-1000, Bangladesh
▶ Homepage:
-