Skip to content

Next.js frontend + Ruby (Sinatra) backend made for Reaktor's pre-assignment

License

Notifications You must be signed in to change notification settings

CrescentKohana/warehouse-reaktor2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-assignment for Reaktor Summer 2021

Backend has to be set up first! Otherwise the frontend won't build as it's server-side-rendered.

Backend

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,

Installation & Usage

  1. cd backend
  2. Install dependencies bundle install
  3. 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.

Dependencies

  • Ruby 3.0+ (should work with Ruby 2.x as well)
  • Other web servers such as Puma work as well (default Webrick)

Frontend

A server-side-rendered frontend made with Next.js.

The default backend URL can be changed in .env.local.

Installation & Usage

  1. cd frontend
  2. Install dependencies: npm install --force
  3. Start with: npm run build & npm run start or just npm run dev for the development mode

Dependencies

  • nodejs v14.16.0+ (LTS)
  • npm latest (tested with 7.4.2)

Something to improve

  • Improve or change VirtualScroller to something faster
  • More precise internal caching!

About

Next.js frontend + Ruby (Sinatra) backend made for Reaktor's pre-assignment

Topics

Resources

License

Stars

Watchers

Forks