A Rails + Vue app that provides Tadpole's website.
To install and use this project you will need:
- Ruby via a version manager like rvm or uru.
- Node.js via a version manager like nvm or nvm-windows.
- Postgres.
Navigate to your web projects directory and use git to clone the project files into a new directory:
git clone https://github.com/path/to/project
- Use your Ruby version manager to install the version listed in Gemfile.
gem install bundler
if not already available for this Rubybundle install
to install all the packages specified in Gemfile.- Dependencies can later be updated with
bundle update
.
- Use your Node version manager to install the version listed in package.json.
npm install
to install all the packages specified in package.json.- Dependencies can later be updated with
npm update
.
This app loads external configuration from environment variables.
We use Figaro to load this data from config/application.yml
in development
environments, but this file may contain service keys and thus cannot be
included via git. Request a copy from a fellow contributor, or roll your own
that provides the required keys listed in config/initializers/figaro
.
Use pgAdmin to ensure the database role specified in application.yml
exists,
has the correct password, can log in, and can create databases.
Next, run rails db:setup
to create the databases, load the schema, and load
initial data.
The initial data will contain an admin user with name "admin" and password "password".
Run rails server
or simply rails s
.
Run rails test
or simply rails t
.
This may become more complex as we integrate additional testing frameworks.
TODO