-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating docker settings to play better with IDEs * removing NODE_PORT env var and using location.origin as the default apiHost * adding restoration instructions to the backups file * updating docs on proxies * updating package.js * adding a release doc and updating the index * fixing the sample env file
- Loading branch information
Showing
13 changed files
with
99 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Creating a Release | ||
|
||
1. Get an Auth token from github. See Github for details on how to do this. | ||
2. Create a secrets folder and add a filer with the below strcuture: | ||
```python | ||
#!/usr/bin/env python | ||
# encoding: utf-8 | ||
|
||
username = 'username' | ||
password = 'token' | ||
``` | ||
3. Create a release doc and place in the releases folder. See the release folder for examples. | ||
4. Once you have a release file created, you can run the release script. This script takes the release file you just created as it's only arg. | ||
- `./release x.x.x.json` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Backing up Your Data | ||
|
||
The following commands can be used to take backups of your data and restore those backups. The backup commands are automatically run when you upgrade to a newer version as well. | ||
|
||
|
||
### Recipes Images | ||
|
||
#### Backing up: | ||
|
||
Replace `/dir/on/local/system/` with the location where you would like your images. | ||
```sh | ||
docker cp openeats_api_1:/code/site-media/ /dir/on/local/system/ | ||
``` | ||
|
||
#### Restoring: | ||
|
||
Replace `/dir/on/local/system/` with the location where you would like your images. | ||
```sh | ||
docker cp /dir/on/local/system/site-media/. openeats_api_1:/code/site-media/ | ||
``` | ||
|
||
### Database | ||
|
||
#### Backing up: | ||
|
||
Places a sql dump of the database on your current working directory. | ||
```sh | ||
docker exec openeats_db_1 sh -c 'exec mysqldump openeats -uroot -p"$MYSQL_ROOT_PASSWORD"' > openeats.sql | ||
``` | ||
|
||
#### Restoring: | ||
|
||
First cd into the dir that contains your sql backup. Once there you need to source your env file so you don't have to type your database password on the command line. Then run the last command to start the restore. | ||
Note: if you changed the database name then you will need to change the last word the statement below to the database name you gave OpenEats. | ||
```sh | ||
cd /open/eats/root/ | ||
source env_prod.list | ||
cat openeats.sql | docker exec -i openeats_db_1 /usr/bin/mysql -u root -p"$MYSQL_ROOT_PASSWORD" openeats | ||
|
||
``` | ||
|
||
|
||
### Sources | ||
- [Copying Image Files to and from Docker Containers/Volumes](https://gist.github.com/spalladino/6d981f7b33f6e0afe6bb) | ||
- [DB backups/restores](https://stackoverflow.com/questions/22907231/copying-files-from-host-to-docker-container) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
# OpenEats Project | ||
|
||
API Status: | ||
[![API Build Status](https://travis-ci.org/open-eats/openeats-api.svg?branch=master)](https://travis-ci.org/open-eats/openeats-api) | ||
[![Coverage Status](https://coveralls.io/repos/github/open-eats/openeats-api/badge.svg)](https://coveralls.io/github/open-eats/openeats-api) | ||
|
||
Web Status: | ||
[![Web Build Status](https://travis-ci.org/open-eats/openeats-web.svg?branch=master)](https://travis-ci.org/open-eats/openeats-web) | ||
[![Coverage Status](https://coveralls.io/repos/github/open-eats/openeats-web/badge.svg)](https://coveralls.io/github/open-eats/openeats-web) | ||
|
||
OpenEats is a recipe management site that allows users to create, share, and store their personal collection of recipes. This fork uses Django Rest Framework as a backend and React (with flux) as a front end. | ||
|
||
The usage for the app is intended for a single user or a small group. For my personal use, I would be an admin user and a few (about 5-6) friends and family would be normal users. Admin users can add other users to the project (no open sign-ups), make changes to the available Cuisines and Courses, and add to the homepage banner. Normal users just have the ability to add recipes. Below are a few of the core features the app provides. | ||
|
||
- Creating, viewing, and editing recipes. | ||
- Creating, viewing, sharing, and editing recipes. | ||
- Update Serving information on the fly. | ||
- Browsing and searching for recipes. | ||
- Creating grocery lists | ||
- Creating grocery lists. | ||
- Automatically add recipes to your grocery lists. | ||
- Quickly print recipe. | ||
- Linking recipes and ingredient grouping | ||
- Linking recipes and ingredient grouping. | ||
|
||
### [Read the docs on getting started here!](https://github.com/open-eats/OpenEats/blob/master/docs/Running_the_App.md) | ||
|
||
### [The Update guide can be found here!](https://github.com/open-eats/OpenEats/blob/master/docs/Updating_the_App.md) | ||
|
||
# Contributing | ||
Please read the [contribution guidelines](https://github.com/open-eats/OpenEats/blob/master/CONTRIBUTING.md) in order to make the contribution process easy and effective for everyone involved. | ||
|
||
For a guide on how to setup an environment for development see [this guide](https://github.com/open-eats/OpenEats/blob/master/docs/Running_the_App_in_dev.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ version: '2.3' | |
services: | ||
nginx: | ||
ports: | ||
- "80:80" | ||
- "8000:80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
server { | ||
# Redirect all http calls to https' | ||
# IE: 80 -> 443 | ||
listen 80; | ||
server_name my.site.com; | ||
return 301 https://$server_name$request_uri; | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
listen 80; | ||
server_name my.site.com; | ||
|
||
# SSL configuration here | ||
ssl_certificate /path/to/cert/fullchain.pem; | ||
ssl_certificate_key /path/to/private/key/privkey.pem; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers HIGH:!aNULL:!MD5; | ||
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; "; | ||
|
||
# pass requests for dynamic content | ||
location / { | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
|
||
# Fix the “It appears that your reverse proxy set up is broken" error. | ||
proxy_pass http://localhost:7000; | ||
proxy_read_timeout 90; | ||
|
||
proxy_redirect http://localhost:7000 http://my.site.com; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters