This is the containerized standalone which is being hosted for universities under different
subdomains (e.g. aubg.brightstudy.com
). Each university has their own portal, which is hosted on a
virtual machine situated in close proximity to their physical location.
yarn install:all
to install all project dependencies (equivalent toyarn install
in root directory andyarn install
in/api
directory)
Client:
- Start the client -
yarn dev
(in root directory)
Server:
- Start the server -
yarn server
(in root directory or in the/api
directory)
Database:
- Start the database container -
yarn db:start
(in root directory or in the/api
directory) - Migrate the database schema -
yarn db:migrate
(in root directory or in the/api
directory) - Seed the database -
yarn db:seed
(in root directory or in the/api
directory) - Explore data in Prisma studio -
yarn db:studio
(in root directory or in the/api
directory)
Login using GQL sandbox:
mutation Login($email: String!, $password: String) {
login(email: $email, password: $password)
}
NB! You will need to pass the token generated upon login in an Authorization header in order to be able to see schemas and do queries.
During the initial deployment, clients will receive a super admin account. This account should be
used for the first login into the portal. The login process for the initial login is handled through
the /login
endpoint. Upon successful login, the user will be directed to the administration panel.
The admin account is responsible for creating new admin accounts that will be used by the university's admins.
For all subsequent logins, users may use the same /login
endpoint but will be redirected to the
home
page instead.
Self-signed certificates to be found in /certs
.
You need to install them to be able to make requests towards the client & API servers.
Password: misho1234