DLST app for managing data flights to cloud storage.
- Clone the repository:
git clone git@github.com:cul/atc.git
- Install gem dependencies:
bundle install
- Set up config files:
bundle exec rake atc:setup:config_files
- Run database migrations:
bundle exec rake db:migrate
- Install Javascript dependencies:
yarn
- (Assuming you are using VS Code) Set up your IDE to locate TS modules and and activate typescript:
- Accept any recommended extension installations. You will need ZipFS to go into any library's code.
- Open a typescript file then open the command palette with
ctrl+shift+pand run "Select TypeScript Version". Pick "Use Workspace Version".
Note
See yarn documentation for more details or instructions if using a different IDE
- Set up your terminal environment to use your AWS credentials for connecting to s3 by following these instructions.
- You may need to comment out the code in
app/initializers/aws.rbthat read credentials from the config file.
- Seed the database with necessary values for operation:
rails db:seed
- Start the vite dev server:
yarn start:dev # or bin/vite dev
- Start the application using
rails server:
bin/rails server # or rails s -p 3000
The S3 browser app will be located under the /browser route. At that route, a React SPA will be loaded into the client.
It requires authentication to view.
Before making a PR, you should check that all tests are passing and both linters (ESLint and rubocop) are happy. We check all of these during github actions continuous integrations.
To run all of the CI actions:
bundle exec atc:ci
To run tests:
bundle exec rake atc:ci_specs
To run the cop:
bundle exec rake atc:rubocop
To run ESLint:
bundle exec rake atc:eslint