Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ArangoDB-Community/ArangoBnB
https://github.com/ArangoDB-Community/ArangoBnB
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ArangoDB-Community/ArangoBnB
- Owner: ArangoDB-Community
- Created: 2021-01-22T21:42:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-30T15:12:39.000Z (over 3 years ago)
- Last Synced: 2024-11-25T17:48:58.029Z (17 days ago)
- Language: JavaScript
- Size: 1.73 MB
- Stars: 16
- Watchers: 6
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - ArangoDB-Community/ArangoBnB - (others)
README
# ArangoBnB
This web app is being created to showcase the GeoJSON functionality of ArangoSearch and to provide an example of ArangoDB being used in a JavaScript stack.
To get started:
* Say hello in the [GitHub Discussions](https://github.com/cw00dw0rd/ArangoBnB/discussions)
* Check out the project todos:
* [Primary Project board (Vue frontend & Backend tasks)](https://github.com/cw00dw0rd/ArangoBnB/projects/1)
* [React Project board](https://github.com/users/cw00dw0rd/projects/1), (thanks [@couds](https://github.com/couds) and [@lostpebble](https://github.com/lostpebble) for leading the react version.)
* The dataset will need some modeling changes to take advantage of ArangoDB features so keep an eye out for changes to the dataset task [#16](https://github.com/cw00dw0rd/ArangoBnB/issues/16).
* The dataset we are using can be found [here](https://drive.google.com/drive/folders/1crMM2RRpdVgi7gkblAlAZXTvIoNNVYbT?usp=sharing). We will make new folders for new dumps when necessary, always use the most recent dump.
* We now have a community projects Slack channel, [join us](https://arangodb-community.slack.com/archives/C01MLH491UM)!Some goals for the project include:
* Search an AirBnB dataset to find rentals nearby a specified location
* Filter these based on keywords, date, and number of guests
* Natural language search (Ex: Houses in Florida with pools.)
* Index data using ArangoSearch Views
* Use AQL for all queriesWe would enjoy having anyone from the community participate in the project development!
If you have any suggestions or features that you would like to be added start a discussion or open an issue.# Contributing
## Project Setup
Currently, there are a couple ways to get started:
* [With Docker Compose](#with-docker-compose)
* [NPM and Self-Installed ArangoDB](#npm-and-self-install)
* [Backend](#npm-backend-setup)
* [Vue](#npm-vue-setup)
* [React](#npm-react-setup)Using Docker Compose
- First you need to download the most up to date dump of the DB from [here](https://drive.google.com/drive/folders/1crMM2RRpdVgi7gkblAlAZXTvIoNNVYbT?usp=sharing)
- Extract the content inside the folder database/dumps. Its should looks like
```
dumps
|_ arangobnb.view.json
|_ arangobnb.view.json:Zone.Identifier
...
```- Run `docker-compose up`. (The first time could take a few minutes, the docker images are beign build and the database dump its beign restored)
- Now you can access the Arango Web Interface in [http://localhost:8529](http://localhost:8529)
- Vue Frontend [http://localhost:8080](http://localhost:8080)
- React Frontend [http://localhost:8081](http://localhost:8081)
- Backend (API) [http://localhost:8001](http://localhost:8001)Using NPM and Self-Installed ArangoDB
### ArangoDB Installation
This project uses features from the upcoming 3.8 version of ArangoDB. To get started you will need the nightly build version of ArangoDB.
For more information on how to get a nightly build please see the [nighly builds page](https://www.arangodb.com/nightly-builds/).Currently, the changes are in `3.8.0` so make sure to use the `3.8.0-nightly` build.
For example, if you are using docker:
```
docker pull arangodb/arangodb-preview:3.8.0-nightlydocker run -d -e ARANGO_ROOT_PASSWORD="test" -p 8529:8529 arangodb/arangodb-preview:3.8.0-nightly
```
Backend
```
npm run install-backendnpm run serve-backend
```
You should receive the following message:
```
ArangoBnb API Backend listening on :5000
```
Note that either the `server_config.js` file or `.env` file in the backend folder must be updated with your ArangoDB depolyment information.### Dependency Management
Each frontend maintains its own package.json for dependencies.
The root package.json handles the installation of packages for whichever package you choose to install.
Running `npm install` will install both sets of packages for Vue and React.If you would like to only install the individual packages append the framework name. ie: `npm run install-vue`
#### Environment Variables
This project uses `.env` and `.env.local` for the various environment variables needed, see the [Vue docs](https://cli.vuejs.org/guide/mode-and-env.html#modes) for more info. You will mostly need to pay attention to and update the variables in `.env.local`.
Since `.env.local` will not be included in PR's, this list should be updated when a PR adds to these variables.
Currently, these are the needed variables.
##### `.env`
`VUE_APP_API_ENDPOINT`
##### `.env.local`
Vue Project Setup
From the project root directory run:
```shell
npm install
# or
npm run install-vue
```### Vue Compiles and hot-reloads for development
```shell
npm run serve
```### Vue Compiles and minifies for production
```shell
npm run build
```### Vue Lints and fixes files
```shell
npm run lint
```### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
React Project Setup
From the project root directory run:
```shell
npm install
# or
npm run install-react
```### Serve the react fronted
```shell
npm run serve-react
```