Application to allow prospective students to apply for Galvanize programs.
- React
- Express
- Node
- Sass
This app uses a proxy server to run locally so your console will show both server and client outputs at once.
npm install
installs server packagescreatedb admissions_dev
to create the database, get its connection string, most likelypostgres://localhost/admissions_dev
however you may have username password requirementscp server/.env-example server/.env
and setDEV_DB_URL
to the db connection string, setTOKEN_SECRET
for jwt signing, and setNODE_ENV
todevelopment
. Get remaining env vars from a co-workercd server && knex migrate:latest --env=development
; if you don't haveknex
installed, runnpm i -g knex
cd ../client && npm install
installs client packages within the client directorynpm run dev
starts both client and server concurrently
This app pings the Assessments Service in order to run code snippets to test a prospective student's python code again what the challenge asks for. In order to setup the DSI coding challenge locally you'll have to spin up that application as well locally. Make sure to have Docker running locally or this app will poll for challenge results until the app times out. You also might need to run bundle exec
in front of the rails server command. You should also run this server on the BASE_URL port in the .env filed within the server folder. This should be a separate port from the front or backend of the Admissions Portal. AS Repo: https://github.com/Galvanize-IT/assessments-service
This app has a .env file in both the main directory and the server directory. This for a few reasons but be sure to follow both .env-example files to get the app working locally.
run createdb admissions_dev
run createdb admissions_test
in the server directory run knex migrate:latest
This application uses Sass instead of CSS Modules since much of the styling is used from dotcom-node (Galvanize.com) which uses Sass variables. Instead of importing CSS into each component chose a folder based on what you're styling (Element, Component, Page) within /src/styles
and create a .scss
file. Then import that file into index.scss
at the base of the client-side code.
The Heroku Webhook is already integrated into specific branches to automatically deploy.
- To deploy to
STAGING
: Create pull request, have admin approve pull request & merge, and Heroku will automatically deploy to staging. - To deploy to
PRODUCTION
: Create pull request, have admin approve pull request & merge, and Heroku will automatically deploy to production.