-
Notifications
You must be signed in to change notification settings - Fork 1
Development Environment Setup Instructions
- command line such as
bash - Docker/docker-compose
- git
For Ubuntu, see:
If you do not wish to develop with docker
In this README, there are no instructions on how to set up without docker/docker-compose.
Please contact a developer if you want to know how to do this.
-
Backend stack:
- ruby 2.3.1
- postgresql
- bundler
-
Frontend stack:
- node 8+
-
Clone this repository
git clone https://github.com/agilesix/ADPQ.git -
Change directory into the newly created project directory
cd ADPQ -
Change directory into the backend project
cd backend -
Build the development environment with docker-compose (this may take a while)
docker-compose -f docker-compose-development.yml build -
Spin up the backend development server
docker-compose -f docker-compose-development.yml up -
In a browser, browse to
http://localhost:8000to make sure everything built correctly.
To do this, run these commands:
docker-compose -f docker-compose-development.yml run web <COMMAND>
Eg:
docker-compose -f docker-compose-development.yml run web bundle install
To seed the database with users, articles, etc:
docker-compose -f docker-compose-development.yml run web rake db:seed
For working in the container, use:
docker-compose -f docker-compose-development.yml run web bash
To run rswag to swaggerize the app:
docker-compose -f docker-compose-development.yml rake rswag:specs:swaggerize
In order to run the tests, the test environment must be built first. This environment includes browsers and settings for testing purposes.
docker-compose -f docker-compose-test.yml build
docker-compose -f docker-compose-test.yml run web bundle exec rails db:migrate
docker-compose -f docker-compose-test.yml run web bundle exec rspec
- If you wish to use the
API, thebackendproject must be running (step 5 of the backend setup)
-
Clone this repository, if you have not already
git clone https://github.com/agilesix/ADPQ.git -
Change directory into the newly created project directory
cd ADPQ -
Change directory into the backend project
cd frontend -
Build the development environment with docker-compose (this may take a while)
docker-compose -f docker-compose-development.yml build -
Spin up the frontend development server
docker-compose -f docker-compose-development.yml up -
In a browser, browse to
http://localhost:8080to make sure everything built correctly.
docker-compose -f docker-compose-development.yml run angular-dev <COMMAND>
ex:
docker-compose -f docker-compose-development.yml run angular-dev ng g c home
docker-compose -f docker-compose-development.yml run angular-dev npm test