V2 Refactor of OKCandidate based on feedback from users and our partners at the Virginian-Pilot
1.7K
A comprehensive refactor of OKCandidate based on feedback from users and our partners at the Virginian-Pilot.
| Develop branch status |
|---|
| |
git clone ...)brew or apt-get etc. You'll get an old or incomplete install.docker-compose up.
-d to start in the background, e.g. docker-compose up -d.docker-compose.yml. We have app and db.docker-compose --help is your friend.docker-compose logs app to see the node logs, for example.docker-compose exec app bash to get a bash shell inside the running node container, for example. You can also do that against db so you can use the psql tool against the database interactively.docker-compose exec postgres pg_dump -u postgres -d postgres > somefile.sqldocker-compose stop to exit the running containers, or docker-compose down to remove the containers, virtual network, and db data.In Summary:
clone repo
Install Docker
docker-compose up
That will get you started with OkCandidate!
In a development environment, some records are generated automatically.
These user/pass combinations can be used to login as user of various roles.
// config/dev-fixtures/user-fixtures.js
...
{
name: 'A. Voter',
emailAddress: '[email protected]',
password: 'leafygreen'
},
{
name: 'A. Candidate',
emailAddress: '[email protected]',
password: 'mashedpotato'
},
{
name: 'Anne Admin',
emailAddress: '[email protected]',
password: 'adminpass'
}
...
We use mocha and superagent for testing. See the trails.js documentation to learn more about writing tests for okcandidate.
Assuming you're using docker-compose, if nothing is currently up, then you can run tests in a new container with docker-compose run app npm test. If you've already started the containers with something like docker-compose up -d then you can run tests in that same container with docker-compose exec app npm test.
This project follows a loose interpretation of Git flow. Master is production, develop is staging. Each feature gets one branch. When opening a PR, please open it against the develop branch.
Content type
Image
Digest
Size
276 MB
Last updated
almost 8 years ago
docker pull code4hr/okcandidate-platform