Demos: frontend warehouse.luukuton.fi & backend ware-api.luukuton.fi
Backend has to be set up first! Otherwise the frontend won't build as it's server-side-rendered.
A really simple local backend to make more sense of the Bad API. Made with Ruby.
The default port of the backend can be changed in backend.rb by changing line: set :port, 4755
,
cd backend
- Install dependencies
bundle install
- Start with:
ruby backend.rb
Running backend the first time can take up to 1-2 minutes depending on the connection and the amount of Bad API's built-in intentional failures.
- Ruby 3.0+ (should work with Ruby 2.x as well)
- Other web servers such as Puma work as well (default Webrick)
A server-side-rendered frontend made with Next.js.
The default backend URL can be changed in .env.local.
cd frontend
- Install dependencies:
npm install --force
- Start with:
npm run build
&npm run start
or justnpm run dev
for the development mode
- nodejs v14.16.0+ (LTS)
- npm latest (tested with 7.4.2)
- Improve or change VirtualScroller to something faster
- More precise internal caching!