-
-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Quick Start
Stephen Yeargin edited this page Jan 3, 2022
·
1 revision
- Ruby 2.7+
- Bundler
- Node
- NPM
- MySQL
This will get a working site going (without any Chapters)
- Clone the repository
- Copy
.env
to.env.local
(or.env.<development|test|production>
as needed) - Update the file with the
DATABASE_URL
credentials bundle install
npm install
bin/rails db:setup
bin/rails css:build
bin/rails javascripts:build
rails s
$ rails c
>>> User.create(email: 'user@example.org', password: 'your_password_here')
http://localhost:3000/admin
Use the CSV template below for the upload functionality.
name,institution_name,location,website,region,district
Fields:
-
name
- Name of the chapter (e.g. Tennessee Kappa) -
institution_name
- Host college/university -
location
-<City>, <State>
of chapter -
website
- Website URL, includinghttps://
-
region
- Larger grouping of chapters -
district
- Smaller grouping of chapters
You can optionally include:
-
slc
-(1 or 0)
ShowSigEp Learning Community
designation -
latitude
- Latitude for chapter office/house -
longitude
- Latitude for chapter office/house
The console includes a rudimentary script that will use the institution_name
(falling back to the location
) of a chapter to find it's latitude
/longitude
by querying Wikipedia. Not meant to be very precise.
$ bin/rails app:geocode_chapters