Coder Social home page Coder Social logo

123_idk_jkjk's Introduction

Setup

  1. Ensure you have Node 19, Ruby 3.2.2, & pnpm installed on your machine.
  2. Create and fill in .env using .env.example as an example.
  3. Setup your postgres database. If you prefer just command line you can use the command below. DBngin is also a quick and easy way to get a local db started.
Brew install postgresql
  1. Setup your client: pnpm client:setup
  2. Setup your API: pnpm api:setup
  3. Start your API: pnpm api:start
  4. Start your client (new terminal tab): pnpm client:start

Tests

Run pnpm api:test to run the rails app tests. The client does not have any tests currently.

Script

  1. Create and fill in .env using .env.example as an example in the /scripts directory.
  2. Run bundle install
  3. Run the script in the following format: ruby pdf_to_pages_embeddings.rb product_engineering_challenge.pdf
  4. Copy the resulting csv files product_engineering_challenge.pdf.embeddings.csv & product_engineering_challenge.pdf.pages.csv to the /api/app/data/ directory. You will notice this already has the generated files, so the application can work.

Deployment

Deployment is done with Railway. A push with changes to the main branch will trigger a new deploy.

To deploy a new frontend run pnpm run build:prod, commit, and push to main.

Railway Ruby docs can be found here

The root directory for the application for Railway is /api

The build command is bundle exec rails db:migrate

123_idk_jkjk's People

Contributors

paulius005 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.