Skip to content

Commit

Permalink
Merge pull request #3 from sraesch/feature/basic_ui
Browse files Browse the repository at this point in the history
Added basic UI for adding/removing/viewing videos
  • Loading branch information
sraesch authored Aug 20, 2023
2 parents 69218f5 + 9d0fa0f commit ffd453d
Show file tree
Hide file tree
Showing 31 changed files with 19,046 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: React

on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install
run: cd movies-db-ui && npm install
- name: Build
run: cd movies-db-ui && npm run build
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,25 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# dependencies
/movies-db-ui/node_modules
/movies-db-ui/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
temp/
temp/
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
2 changes: 1 addition & 1 deletion movies-db-service/movies-db/src/service/service_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ where
pub async fn handle_add_movie(&mut self, movie: Movie) -> Result<impl Responder> {
match self.index.add_movie(movie) {
Ok(movie_id) => match self.storage.allocate_movie_data(movie_id.clone()).await {
Ok(()) => Ok(web::Json(movie_id)),
Ok(()) => Ok(movie_id),
Err(err) => Self::handle_error(err),
},
Err(err) => Self::handle_error(err),
Expand Down
3 changes: 3 additions & 0 deletions movies-db-ui/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
Loading

0 comments on commit ffd453d

Please sign in to comment.