You may need a personal or society's account for
- Microsoft Azure (please note that the school account (1155xxxxxx@link.cuhk.edu.hk) is not applicable)
- Heroku
- Github
- Fork this repository
- On Heroku, create a new app with a custom name, choose the region United States
- Goto
https://your-app-name.herokuapp.com
(remember to replace with your app name) to test the deployment - If successful, you will be at the
Initialise Client keys
page -
- Open Azure on another window, make sure the language is English
- Search
App registrations
- Click
New registration
- Setup the display name for your application
- Choose
Accounts in any organizational directory (Any Azure AD directory - Multitenant)
forSupported account types
- At
Redirect URI
inserthttps://your-app-name.herokuapp.com/api/login
(remember to replace with your app name) - Click
Register
- Copy
Application (client) ID
and paste it onto theClient ID
field on theInitialise Client keys
page - On the Azure's page, find and go to
Certificates & secrets
on the left panel - Go to section
Client secrets
and clickNew client secrets
- Input a custom description and choose the exire time as
Never
- Click
Add
- Copy the
Value
and paste it onto theClient Secret
field on theInitialise Client keys
page - Click the
Initialise
button on theInitialise Client keys
page
- Login with your CUHK link account
- Accept the permission request if applicable
- Set yourself as an executive by inputing your nickname and position
- Import members and setup other admins
- Done
- Install
postgresql
,node.js
andyarn
- Put a
.env
file in root following the variables in.env.example
- Run
yarn install
to install all dependencies - Run
yarn newdb
set up the database - Run
yarn release
to generate sync the database and generate jwt secret - Run
yarn dev
to start the server
- Soc-admin
- Database: Sequelize / Umzug
- Backend: Graphql / Apollo Server
- Frontend: Apollo Client / Next / React / react-bulma-components / Bulma
- Miscellaneous: Axios / Typescript / Jest