Giter Site home page Giter Site logo

nit-silchar-200-running's Introduction

NIT-SILCHAR-200-Running

Video Link

https://drive.google.com/drive/u/0/folders/1u6u1o7_rQ2_3iHQW93XfrnaAiqZMEPmo

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=mongodb+srv://debo:[email protected]/myFirstDatabase?retryWrites=true&w=majority
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

Web app will be accessible at localhost:5000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.