Skip to content

Debojyoti1915001/NIT-SILCHAR-200-Running

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIT-SILCHAR-200-Running

Routes

  • GET / -> Renders the Ecommerce Landing Page
  • User authentication routes
    • GET /user/signup -> Renders the registration view
    • POST /user/signup -> Creation of new user account
    • GET /user/login -> Renders the login view
    • POST /user/login -> User login
    • GET /user/logout -> Logs the user out and redirects to /login route
    • GET /user/groupLanding -> Renders the group Landing page i.e. the post of all the Groups you are part of.
    • GET /user/groupFeed -> Renders all the groups you are part of alng with the suggested Groups done using ML.
    • GET /user/homeGroup?id= -> Renders all the details within a group
    • GET /products -> Renders all the products
    • GET ``/suggestedProducts` -> Renders all the suggested products done using ML

Installation

(Note : These instructions are only for developers/testers for now)

  1. Open git bash or cmd
  2. Clone the repo:
git clone https://github.com/Debojyoti1915001/NIT-SILCHAR-200-Running.git
  1. Change to the NIT-SILCHAR-200-Running directory
cd NIT-SILCHAR-200-Running
  1. The operational code is in master
git checkout --track origin/dev
  1. Obtain the .env file and place it inside the root (NIT-SILCHAR-200-Running) directory
MONGODB_URL=Enter_MongoDB_Link_Here
NODEMAILER_EMAIL= enter_your_email_here
NODEMAILER_SECONDARYEMAIL=enter_your_secondary_email_here
NODEMAILER_PASSWORD = enter_your_email's_password_here
JWT_SECRET = seaoftranquility
Cloud_Name=dxjcjsopt
API_Key=776272262761276
API_Secret=ZvhJVjaKl4CTKyDJIN-xKfNOit4
  1. Open your git bash or cmd again, and cd to the NIT-SILCHAR-200-Running directory. Then
npm install

After all packages have gotten installed,

nodemon src/app.js

Web app will be accessible at localhost:3000

Running Flask app for accesing ML model

  • Change to the NIT-SILCHAR-200-Running directory
cd ML
  • The following python modules are required for running of the flask app
pip install sklearn
pip install tensorflow
pip install numpy
pip install pandas
pip install tqdm
pip install nltk
pip install Pillow
pip install spacy
pip install pickle
pip install flask
pip install requests
  • Install the required python modules and After all packages have gotten installed,
py app.py

The server will run at localhost:5000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •