Skip to content

natanungethuem/BUENO_fs_NATAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecore Test

This project is authored by Natan Bueno.

package.json

  • docker:build: Builds all Docker services defined in docker-compose.yml.
  • docker:build:backend: Builds the backend Docker service.
  • docker:build:db: Builds the db Docker service.
  • docker:build:frontend: Builds the frontend Docker service.
  • docker:run: Runs all Docker services.
  • docker:run:backend: Runs the backend Docker service in detached mode.
  • docker:run:db: Runs the db Docker service in detached mode.
  • docker:run:frontend: Runs the frontend Docker service in detached mode.

backend/package.json

  • install:python: Installs the Python dependencies listed in requirements.txt.
  • lint:python: Runs pylint on all Python files in the project.
  • lint:python:fix: Runs autopep8 on all Python files in the project, modifying the files in place to fix any issues.

frontend/package.json

  • start: Starts the development server.
  • build: Builds the app for production.
  • test: Runs the test watcher in an interactive mode.
  • eject: Removes this tool and copies build dependencies, configuration files and scripts into the app directory.
  • install:node: Deletes the node_modules directory and package-lock.json file, then runs npm i.

You can run these scripts with npm run <script-name>. For example, to build all Docker services, you would run npm run docker:build.

Database

  • It did not use foreign keys constraints in the database. Applications like Oracle Retail, for example, do not use this type of constraints to avoid performance loss

  • To generate the files to create tables, you need to run the follow script: python backend/create_tables.py, it's called automatically when you run docker:build or docker:build:db

Test

To test should be used Insomnia REST client and run the collection of API requests from file: backend\test\Insomnia.json

This project provides the following API endpoints:

  • Create Order: A POST request to http://localhost:5000/orders/ to create a new order.
  • Delete Order: A DELETE request to http://localhost:5000/orders/{order_id} to delete an order.
  • Get Order: A GET request to http://localhost:5000/orders/{order_id} to retrieve an order.
  • Login OK: A POST request to http://localhost:5000/login to perform a successful login.
  • Login Nok: A POST request to http://localhost:5000/login to perform an unsuccessful login.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published