KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
askdarcel-api
★ 9
Open GitHub ↗
Backend of the "Ask Darcel" app.
Download README (.md)
Explore Similar Repositories
RDS-GracePeriod-Reset
:
No description available.
AI
:
For artificial intelligence with sbt to build - maven build pls step forward to https://github.com/bgfurfeature/AI
node-red-contrib-statistics
:
A Node Red node for calculating statistics on a flow.
p5js-vim-workflow
:
Not sure whether the term workflow is justified here
WeChat-Cloud-Robot
:
WeChat Cloud Rebot 微信云端机器人框架 Alpha版 框架引擎Python+Cherrypy+Mako
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
askdarcel-api
?
Download (.md)
# askdarcel-api [](https://travis-ci.org/ShelterTechSF/askdarcel-api) This project exposes the API endpoints for supporting the askdarcel-web project, which is built using a Ruby on Rails API Server ## Onboarding information [Dev Role Description](https://www.notion.so/sheltertech/Developer-Engineer-Role-Description-ShelterTech-AskDarcel-SFServiceGuide-Tech-Team-7fd992a20f864698a43e3882a66338bb) [Technical Onboarding & Team Guidelines](https://www.notion.so/sheltertech/Technical-Onboarding-and-Team-Guidelines-a06d5543495248bfb6f17e233330249e) ## Docker-based Development Environment (Recommended) ### Requirements Docker Community Edition (CE) >= 17.06 Docker Compose >= 1.18 Download and install the version of [Docker for your OS](https://www.docker.com/community-edition#/download). #### Creating the `.env` file The `.env` file is a de facto file format that allows you to specify environment variables that can be read by an application. It makes it easier to pass environment variables to an application without manually having to set them in the environment. It is supported by: - [Docker](https://code.visualstudio.com/docs/python/environments) (built in) - [NodeJS](https://www.npmjs.com/package/dotenv) (as a library) - [Ruby](https://github.com/bkeepers/dotenv) (as a library) In the root of the repo cloned to your local machine, create a file named `.env` with the credentials listed in [this document](https://www.notion.so/sheltertech/API-Keys-Env-variables-3913e9074b61403c860d1a4649060e4f). ### Set up the project This is not a full guide to Docker and Docker Compose, so please consult other guides to learn more about those tools. ```sh # Build (or rebuild) Docker images $ docker-compose build # Start the database container (in the background with -d) $ docker-compose up -d db # Generate random database fixtures $ docker-compose run --rm api rake db:setup db:populate # Start the Rails development server in the api container (in the foreground) $ docker-compose up api # Stop all containers, including background ones $ docker-compose stop ``` ### Running Postman tests from the command line ```sh # Reset DB with initial database fixtures $ docker-compose run --rm api rake db:setup db:populate # Run Docker container that executes Postman CLI tool named newman $ docker-compose run --rm postman ``` ### Alternative database setup ```sh # Populate the database with a direct copy of the live staging database. # - Ask technical team for the staging database password. $ docker-compose run -e STAGING_DB_PASSWORD=<...> --rm api rake db:setup db:import_staging ```