Skip to content

luismartinezs/studio-ghibli-books

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Studio Ghibli Ecommerce

Small App that consumes the Studio Ghibli API and displays a minimal fully-responsive responsive ecommerce. Currently it has a Home, a Detail page and a Shopping Cart.

See the App user interface here: https://luismartinezs.github.io/studio-ghibli-books/

This project was done as a class exercise to learn / practice React.

Current pipeline

Since I've gone through most of the React documentation, I know now more than when I created this app, so I plan to work on these main aspects:

  • Clean up the code and the documentation (this file is an example), improve the design of the error and loading pages
  • Use React "advanced" tools to improve the code: defaultProps, propTypes, fragments, HOCs, context, routers, error boundaries...
  • Call to the API using Redux built-in applyMiddleWare method
  • Add basic tests with Jest, and perhaps with Enzyme

The main purpose is still to learn and to put what I learned to practice.

Installing

This project uses react, redux, react-redux and fortawesome modules.

If you want to play around with it, clone it into a new repo:

git clone https://github.com/luismartinezs/studio-ghibli-books.git

And then just run npm install on the cloned repo.

Deployment

Run npm run build to generate a production build.

If you want to deploy the repo to github, you can follow these steps:

  1. Create new repo in github
  2. Create react app project, and initiatie git local repo: git init, git add ., git commit -m "first commit"
  3. Set github repo as your remote repo: git remote origin https://github.com/user/repository.git
  4. Make changes to the local repo
  5. npm run build
  6. Paste "homepage": "http://username.github.io/myapp" in package.json, after "private" (change the url)
  7. Add this to package.json after eject key
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
  1. Run: npm install --save-dev gh-pages
  2. Run: npm run deploy
  3. In git-hub > repo > settings, under the heading GitHub Pages / source, select gh-pages branch, and save
  4. Try the link provided, if it doesn't work, select another branch, save, select again gh-pages, save. Reload page. It may take a few seconds/minutes for the web to show up.

Built with

Author

Misc