Code Monkey home page Code Monkey logo

bricky's Introduction

Hi, I am Lars ๐Ÿ‘‹

I am part dreamer, part realist. Overly optimistic, and a genuine pessimist. I value the beauty in imperfection and the perfection in beauty.

I love most things tech, grew up in .NET, work on a mac, live in Denmark, and work for a most wonderful toy company.

Projects ๐ŸŒฑ

Currently, I am playing around with DomainLang, which aims to be DSL, model, architecture graph, and anything in between, in the Domain-Driven Design space.

A couple of years ago, I did a small discovery project, diving a bit more into the electron stack, curious on how I might use web technology for cross-platform desktop apps. That was quite fun, and out of that work came plodo, you should check that out too.

A glimpse of my tech stack โšก

cs dotnet typescript javascript swift vue azure

Connect ๐Ÿค

Love to hear from you, find me on

linkedin medium devto

bricky's People

Contributors

larsbaunwall avatar simonclausen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bricky's Issues

Error on docker compose up

Hello!

First of all, awesome project! Thank you!

I am running this on Ubuntu 22.04.

I have created an .env file inside the "api" directory with this configuration
image

And then I entered inside the "api" folder, and tried to run "docker compose up", and got these errors:

$ sudo docker compose up
[+] Running 2/0
 โ ฟ Container bricky-app-1  Created                                                                                    0.0s
 โ ฟ Container bricky-api-1  Created                                                                                    0.0s
Attaching to bricky-api-1, bricky-app-1
bricky-app-1  | 
bricky-app-1  | > [email protected] start
bricky-app-1  | > next start
bricky-app-1  | 
bricky-app-1  | ready - started server on 0.0.0.0:3000, url: http://localhost:3000
bricky-api-1  | INFO:haystack.telemetry:Telemetry has been disabled.
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'File` with input: {'root_node': 'File', 'params': None, 'node_id': 'File'}
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'MarkdownConverter` with input: {'root_node': 'File', 'params': {}, 'node_id': 'MarkdownConverter'}
bricky-api-1  | DEBUG:haystack.pipelines.base:Exception while running node 'MarkdownConverter' with input {'root_node': 'File', 'params': {}, 'node_id': 'MarkdownConverter'}
bricky-api-1  | Traceback (most recent call last):
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/pipelines/base.py", line 530, in run
bricky-api-1  |     node_output, stream_id = self._run_node(node_id, node_input)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/pipelines/base.py", line 457, in _run_node
bricky-api-1  |     return self.graph.nodes[node_id]["component"]._dispatch_run(**node_input)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/nodes/base.py", line 201, in _dispatch_run
bricky-api-1  |     return self._dispatch_run_general(self.run, **kwargs)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/nodes/base.py", line 245, in _dispatch_run_general
bricky-api-1  |     output, stream = run_method(**run_inputs, **run_params)
bricky-api-1  | TypeError: BaseConverter.run() missing 1 required positional argument: 'file_paths'
bricky-api-1  | 
bricky-api-1  | The above exception was the direct cause of the following exception:
bricky-api-1  | 
bricky-api-1  | Traceback (most recent call last):
bricky-api-1  |   File "/opt/venv/bin/uvicorn", line 8, in <module>
bricky-api-1  |     sys.exit(main())
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
bricky-api-1  |     return self.main(*args, **kwargs)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
bricky-api-1  |     rv = self.invoke(ctx)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
bricky-api-1  |     return ctx.invoke(self.callback, **ctx.params)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
bricky-api-1  |     return __callback(*args, **kwargs)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/main.py", line 404, in main
bricky-api-1  |     run(
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
bricky-api-1  |     server.run()
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
bricky-api-1  |     return asyncio.run(self.serve(sockets=sockets))
bricky-api-1  |   File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
bricky-api-1  |     return loop.run_until_complete(main)
bricky-api-1  |   File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
bricky-api-1  |     return future.result()
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 67, in serve
bricky-api-1  |     config.load()
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/config.py", line 477, in load
bricky-api-1  |     self.loaded_app = import_from_string(self.app)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
bricky-api-1  |     module = importlib.import_module(module_str)
bricky-api-1  |   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
bricky-api-1  |     return _bootstrap._gcd_import(name[level:], package, level)
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
bricky-api-1  |   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
bricky-api-1  |   File "/home/appuser/./main.py", line 28, in <module>
bricky-api-1  |     index_pipe.ensure_index()
bricky-api-1  |   File "/home/appuser/./pipelines/indexing.py", line 57, in ensure_index
bricky-api-1  |     self.pipeline.run(file_paths=files_to_index)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/pipelines/base.py", line 535, in run
bricky-api-1  |     raise Exception(
bricky-api-1  | Exception: Exception while running node 'MarkdownConverter': BaseConverter.run() missing 1 required positional argument: 'file_paths'
bricky-api-1  | Enable debug logging to see the data that was passed when the pipeline failed.
bricky-api-1 exited with code 1

I can access localhost:3000, but I get this error when I do:

bricky-app-1  | Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
bricky-app-1  | Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
bricky-app-1  | TypeError: fetch failed
bricky-app-1  |     at Object.fetch (node:internal/deps/undici/undici:14152:11)
bricky-app-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
bricky-app-1  |     at async __WEBPACK_DEFAULT_EXPORT__ (/app/.next/server/pages/api/chat.js:16:22)
bricky-app-1  |     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:363:9)
bricky-app-1  |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:487:9)
bricky-app-1  |     at async Object.fn (/app/node_modules/next/dist/server/next-server.js:749:37)
bricky-app-1  |     at async Router.execute (/app/node_modules/next/dist/server/router.js:253:36)
bricky-app-1  |     at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:384:29)
bricky-app-1  |     at async NextNodeServer.handleRequest (/app/node_modules/next/dist/server/base-server.js:322:20) {
bricky-app-1  |   cause: Error: getaddrinfo EAI_AGAIN api
bricky-app-1  |       at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
bricky-app-1  |     errno: -3001,
bricky-app-1  |     code: 'EAI_AGAIN',
bricky-app-1  |     syscall: 'getaddrinfo',
bricky-app-1  |     hostname: 'api'
bricky-app-1  |   }
bricky-app-1  | }

I can't access localhost:8000/docs

Am I doing something wrong?
Thanks!

Error with bbdd when starting

When (using Windows) I run docker-compose I get this error "sqlite3.OperationalError: unable to open database file"

screenshot1

So http://localhost:8080/docs url doesnt work but the frontend runs, when i write something it throws another error

screenshot2

Any idea? also, if you can provide more info abour the structure of the markdown files and the index, maybe adding a folder with content to the project, would be perfect

thanks

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.