OutOfMemory is a developers community which user can post questions and answers inspired by StackOverflow. It's assumued to be used internally, like in company or school.
OutOfMemory is mainly written in Rust (backend) and Vue.js (frontend). I believe this repository could be a good example for those who will build a web app in that combination.
Expecially the backend uses awesome crates which you should use for developing APIs.
- seanmonstar/warp
- diesel-rs/diesel
- sfackler/r2d2
- serde-rs/serde (serde-rs/json, dtolnay/serde-yaml, nox/serde_urlencoded)
- rust-lang-nursery/failure
- seanmonstar/reqwest
This repository is still under developing and many of functions are not working! (Pagination, sorting and so on.)
There is a only 3 steps to start running OutOfMemory! You need docker
and docker-compose
command in your environment.
1. Create an OAuth app on GithHub and save it as config.yaml.
github:
client_id: "YOUR_CLIENT_ID"
client_secret: "YOUR_CLIENT_SECRET"
oauth_access_token: "https://github.com/login/oauth/access_token"
oauth_authorize: "https://github.com/login/oauth/authorize"
api_endpoint: "https://api.github.com"
There is a skeleton file at oom-backend/config.sample.yaml. You don't have to replace oauth_access_token
, oauth_authorize
and api_endpoint
if you use github.com.
2. Modify the oom-backend/docker-compose.sample.yml.
Copy the skeleton file and rename it as docker-compose.yml
.
cp docker-compose.sample.yml docker-compose.yml
Modify the ./path_to/your/config
to the correct path which the config created at step 1 exists on.
# It takes a long time!
docker-compose build
docker-compose up
- If you don't running it on your localhost, please commit
.env.docker-compose.local
onoom-frontend/.
. Otherwise the frontend try to connect tohttp://localhost:8080
as written inoom-frontend/.env.docker-compose
.
VUE_APP_API_ENDPOINT=http://your_host:8080