Skip to content

LCM288/soc-admin

Repository files navigation

License Commits Last Commit Build Status Open Issues Open PRs

For Societies' Executive Committees

Prerequisite

You may need a personal or society's account for

Setup procedure

  1. Fork this repository
  2. On Heroku, create a new app with a custom name, choose the region United States image image
    1. At the new app's dashboard
    2. Go to Overview tab image
    3. Click Configure Add-ons image
    4. Input Heroku Postgres at the add-on section image
    5. Choose the plan Hobby Dev - Free and then submit image
    1. Go to Deploy tab image
    2. Choose Github as the deployment method image
    3. Link your Github account with Heroku
    4. choose the forked repo image
    5. Deploy the branch master (or main) manually image
    6. Wait until the deployment finished (it may take serval minutes) image
  3. Goto https://your-app-name.herokuapp.com (remember to replace with your app name) to test the deployment
  4. If successful, you will be at the Initialise Client keys page image
    1. Open Azure on another window, make sure the language is English image
    2. Search App registrations image
    3. Click New registration image
    4. Setup the display name for your application image
    5. Choose Accounts in any organizational directory (Any Azure AD directory - Multitenant) for Supported account types
    6. At Redirect URI insert https://your-app-name.herokuapp.com/api/login (remember to replace with your app name) image
    7. Click Register
    8. Copy Application (client) ID and paste it onto the Client ID field on the Initialise Client keys page image image
    9. On the Azure's page, find and go to Certificates & secrets on the left panel image
    10. Go to section Client secrets and click New client secrets image
    11. Input a custom description and choose the exire time as Never image
    12. Click Add
    13. Copy the Value and paste it onto the Client Secret field on the Initialise Client keys page image image
    14. Click the Initialise button on the Initialise Client keys page
  5. Login with your CUHK link account
  6. Accept the permission request if applicable image
  7. Set yourself as an executive by inputing your nickname and position image
  8. Import members and setup other admins
  9. Done

For Developers

Setup procedure

  1. Install postgresql, node.js and yarn
  2. Put a .env file in root following the variables in .env.example
  3. Run yarn install to install all dependencies
  4. Run yarn newdb set up the database
  5. Run yarn release to generate sync the database and generate jwt secret
  6. Run yarn dev to start the server

Useful docs

About

A soc admin app for every CUHK's society

Resources

License

Stars

Watchers

Forks

Packages

No packages published