This is main repository for Poly, the model sharing platform.
Poly server is dependant on AWS S3 and MySQL.
To build you Poly Server, perform the following steps.
- Clone repository and install node packages
- Prepare S3Server for Poly server
- Create OAuth ID from Google and Github
- Update .env file
- Run Poly Server
To clone Poly repository, execute the commands below.
$ git clone --depth=1 https://github.com/parallelspaceRE/poly-web
$ cd poly-web
$ npm install
Using AWS S3 may be charged under AWS policy.
Create new S3 Bucket for Poly server.
Following steps are guides for server which domain name is poly-web.com
If you don't have domain and want to run server for test, you can replace domain name to http://localhost:3000.
Create OAuth 2.0 Client ID from Google Cloud console
- Click Create Credentials -> OAuth client ID
- Selecet Web application
- Fill https://poly-web.com for Authorized JavaScript origins
- Fill https://poly-web.com/api/auth/callback/google for Authorized redirect URIs
- Click Create Button
- Memo your client id and Secret
Create OAuth ID from Github Developer settings
- Click New OAuth App
- Fill App name
- Fill https://poly-web.com for Homepage URL
- Fill https://poly-web.com/api/auth/callback/github for Authorized callback URIs
- Click Register application
- Click Generate a new client secret then memo the secret and Client ID