Coder Social home page Coder Social logo

findexpert's Introduction

This is an API service that can be consumed by an SPA or a mobile app. The repository does not contain any code related to the front-end. See client repository if you are looking for the source of the SPA and the mobile app.

Get Started

First, make sure you have a PHP 8.0 server, and a MYSQL database running (e.g. XAMPP, an all-in-one solution). To set up the project in a local environment, first rename the .env.example file to .env. After filling in the db credentials in the .env file run the following commands one by one:

composer install
composer dump-autoload
npm install
php artisan key:generate
php artisan migrate
php artisan serve

Database

This application uses Neo4j graph database along with MYSQL to get connections between users in a more optimal way. Refer here to see the benchmark comparison.

Install neo4j in your local machine before running the app. Refer to this page for more information.

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb https://debian.neo4j.com stable 4.1"
sudo apt install neo4j
sudo systemctl enable neo4j.service

Finally, set the Neo4j password with the cypher shell command. Note that the default user name and password is neo4j/neo4j Do not forget to fill in the db credentials in the .env file afterwards.

Neo4j Client

laudis/neo4j-php-client library is used to run CYPHER queries. However, it seems there is a bug in the library making it impossible to make changes on the database. The framework's HTTP client is used to execute those queries.

URL Shortener

Cutt.ly is a simple URL shortening service. Make sure you signed up in their website and acquired an API key. Add the API key to the .env file.

Planned features

  • Users can remove friends
  • Users can fetch topics manually in case there was a change in their websites, or a failure in previous attempts
  • Users can update the URL shortenings for their websites

findexpert's People

Contributors

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