Skip to content

ArnauP/search-bar-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search bar webapp

This web application consists in a search bar that looks for items in a MongoDB database. Visit the website to see the project deployed.

Installation

Requirements

To be able to run locally this project you will need:

Setup

Build the application with

docker-compose build

Run the application with

docker-compose up -d

Stop the application

docker-compose down

First steps

In order to have the database ready to go you need to first follow a few steps:

  • Connect to the mongodb database through localhost:27017 using your desired tool.
  • Create a database named db.
  • Create a collection named garment_items.
  • Import the JSON garment_items.jl.

Usage

Once the application is up and running you will have the following URL available:

The backend has the following endpoints available:

  • /search

Backend query example

http://localhost:5000/search?q=shirt

Testing

To run the unit tests execute the following command

docker-compose exec backend python -m unittest discover

Developer notes

To run the code linter use

docker-compose exec backend flake8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published