Coder Social home page Coder Social logo

shunseii / bahar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.24 MB

Search engine for an online Arabic-English dictionary

Home Page: https://bahar.dev

Makefile 0.08% JavaScript 0.90% Dockerfile 1.15% Shell 0.46% TypeScript 96.30% HTML 0.48% CSS 0.62%

bahar's Introduction

Bahar

This is the monorepo for the Bahar application. It is set up using pnpm workspaces and turborepo.

Bahar is an online personal dictionary. Currently it only supports English - Arabic.

It allows you to build up your own dictionary that's powered by a search engine.

Currently, you can only view your dictionary and words only have translations. However, in the future, users will be able to add words themselves and words will have additional metadata like context, examples, root letters, morphology chart, etc...

Getting Started

Firstly, copy the .example.env to .env in api and web.

Then, run docker-compose up to run all the services in development mode.

Now, the front end application will be available on http://localhost:4000.

To run a production setup locally, use docker-compose -f docker-compose-prod.yaml up.

Projects

Web

This is a front end SPA using Vite and React.

It uses Shadcn and Tailwindcss for styling.

Client side routing is done using tanstack router and async state managemnet with tanstack query. Atomic state management is done with Jotai.

It also makes use of Caddy as a production web server. The docker-compose-prod builds the app and serves it using Caddy.

Api

This is a Node.js server using TRPC. It shares the trpc client with the front end.

The primary database is libsql (turso) but also uses redis (upstash) for rate limiting.

Libsql persists data to the local disk. If you run it outside of docker, it will save the data to apps/api/local.db.

It uses drizzle ORM to interact with the database and lucia-auth for handling authentication.

bahar's People

Contributors

shunseii avatar turbobot-temp avatar

Watchers

 avatar

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.