https://github.com/x1unix/foodcourt
Backend for FoodCourt app (mirror)
https://github.com/x1unix/foodcourt
Last synced: about 1 month ago
JSON representation
Backend for FoodCourt app (mirror)
- Host: GitHub
- URL: https://github.com/x1unix/foodcourt
- Owner: x1unix
- Created: 2018-12-16T19:24:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T19:24:45.000Z (over 6 years ago)
- Last Synced: 2025-01-31T07:16:10.386Z (3 months ago)
- Language: Go
- Size: 5.76 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Foodcourt
> Food order app for Limelight Lviv office## Documentation
Api docs are available at [Postman Documenter](https://documenter.getpostman.com/view/1108844/voracity/77mZMFv). In the future will be moved to Swagger## Development
### Files
* `fc-server.go` - Web-server
* `fc-run.go` - Command runner### Installation
1. Install [Go compiler](https://golang.org/) (v1.9+)
2. Install [Docker](https://www.docker.com/)
3. Install [dep](https://github.com/golang/dep) dependency manager
4. Define `GOPATH` variable (if not defined)
5. Clone this project to `$GOPATH/src/foodcourt`
6. Install all dependencies using Glide: `dep ensure`**Attention** - Ensure that you've defined the `GOPATH` [global variable](https://github.com/golang/go/wiki/GOPATH).
### Dev-environment and demo data
By default, web-server starts at `http://localhost:8000` and configuration is provided at `.env` file.Default credentials are:
* **Email** - `[email protected]`
* **Password** - `q1w2e3`Default demo data is available at `demo` folder.
To import demo data, run `import.sh` script at `demo` folder:
```bash
$ cd voracity-ua
$ cd demo
$ bash ./import.sh
* Importing dishes list ...
* Deleting existing photos ...
* Extracting photos ...
Archive: photos.zip
creating: ../src/public/photos/
inflating: ../src/public/photos/06d5d616179f99d45fb014141e953437.jpg
...
...
===== IMPORT FINISH ======
```