Skip to content

This repo will have the AST for the mtg search engine. This repo is for checking if a card matches a query. It will (when I get round to it) have implementations in an array of languages.

License

SquireTournamentServices/mtg-search-engine

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
mse
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mtg-search-engine

This is an open source library and, standalone application that supports the searching of MTG cards and sets. It has a syntax that is similar to Scryfall but it can be embedded anywhere.

Work in progress

Frontend Main Memory tests Coverage codecov

Requirements

  • cmake+
  • openssl+
  • cURL+
  • jansson+
  • abseil+
  • c compiler (i.e: gcc)
  • c++ compiler (i.e: g++)
  • bison
  • flex
  • pthread (see win32 pthread)
  • python3
  • pip install -r requirements.txt
  • these can be included via submodules, see the SquireDesktop repo for an example

Optional Requirements

  • astyle
  • cmake-formatter
  • ctest
  • valgrind
  • libmedtls (web-api)

Building and Testing

This project is written in C and, targets all platforms. There is an optional frontend and web API for this project, these can simply not be built.

Backend / Library / CLI

# .
mkdir -p build
cd build

# ./build/
# You can use -DMSE_WEB_API=ON to build the web api
# You can use -DUSE_JEMALLOC=ON to build with Jemalloc (recommended)
cmake .. 
cmake --build . -j

ctest -V -j # Runs all the tests

Testing on poor internet

Local test flag for slow internet: MSE_TEST, use this to make the program always read a cached copy of AllPrintings.json, really useful when running on crap internet.

export MSE_TEST=true
./mtg-search-engine-tests

Frontend

The frontend uses NextJS with the app dir.

cd frontend
npm i
npm build

About

This repo will have the AST for the mtg search engine. This repo is for checking if a card matches a query. It will (when I get round to it) have implementations in an array of languages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published