This is the data pipeline for SCE. It consists of the RDS data warehouse and its API.
- Download MySQL Workbench from here
- See here and scroll down to the section on Connect to the RDS DB instance from your local machine
- Credentials are provided by Jerry. Message shadowclaw#6023 on discord
Git clone https://github.com/SCE-Development/Skylab-pipeline.git
cd
intowarehouse/
and typenpm install
to install dependencies- Copy
warehouse/src/config/constants.example.json
towarehouse/src/config/constants.json
and fill out necessary info npm run dev
to connect to the database and start server
We use an EC2 as a bastion host to connect to the RDS database. Thus, the only thing that can communicate with the database is the EC2 instance. Outside users, including yourself, may not connect.
I have opened the RDS to the public for the purpose of this internship. To lock it up, do the following steps
- Remove All TCP traffic from the security group
- Set public accessibility of the RDS database to No
When testing a query, it is preferred that the database remains unchanged if it does not need to be modified. Thus, the general workflow would be to test the query, stub the data, and put it together once both the query and endpoint works.
- Test your queries using mySQL workbench
- Stub the query json results in your endpoint
- Use Postman to test the endpoint
- Create a PR for the endpoint.