Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

node --http-parser=legacy x/db/import-schools.js 

Note that this will fail on recent Node versions with an error on a stray char in the response headers. Node LTS 12 works though, and probably should be the version used for the project in any case.

For Production Cloud Servers

...

  1. Import schools, run these commands to get your local docker environment ready:

    Code Block
    languagebash
    x/docker-dev/npm.sh ci
    x/docker-dev/up.sh
    x/docker-dev/console.sh
    
    # you will be prompted to select a container here
    # press 1<ENTER> to use the web container
    # this will open a console inside the web container
    # run this command now:
    
    node --http-parser=legacy x/db/import-schools.js
    exit
    
    # you should now be back in your original terminal
    # the rest of the steps can be completed from your browser
  2. Open browser and go to local Voluntarily app (http://localhost:3122)

  3. Login with an admin account

  4. Go to http://localhost:3122/admin/goals

  5. Click the “Load Goals” button

  6. Go to http://localhost:3122/admin/invite-school

  7. Fill out the invite form

  8. Logout of Voluntarily with your admin account

  9. Open mailhog (http://localhost:8025)

  10. You should see an email with the subject "[DEVELOPMENT] Your school has been invited to Voluntarily"

  11. Click the button "Sign up and activate your school" in the email

  12. This should take you to the Auth0 login/sign up screen

  13. Either login with an existing account or sign up

  14. Once logged in the following should have happened:

    1. you should be redirected to your Voluntarily dashboard

    2. school related goal cards should be displayed displayed

    3. there should have been a new organisation created (based on the school you selected on the invite school form)

    4. your currently logged in account should be an org admin of that organisation

    5. on your profile you should have the “requestor” role

Note: /admin/invite-school can be appended to the environment url for testing

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@aba
showSpacefalse
sortmodified
typepage
reversetrue
labelsschools invite database sysadmin
cqllabel in ( "schools" , "sysadmin" , "database" , "invite" ) and type = "page" and space = "VP"

...