Example app for the Xen Platforms interview challenge.
- Gist with challenge and instructions: https://gist.github.com/thiagosil/ee725fa09c796a1b5727afaac07c6bc7
- Base template repository: https://github.com/Finvoice/xen_base_challenge
Clone or download this repository.
-
SQLite3
- Follow the installation instructions for your platform.
-
OPTIONAL: Install the
asdfruntime version manager: https://asdf-vm.com/.- Install the Ruby
asdfplugin: https://github.com/asdf-vm/asdf-ruby - Install the NodeJS
asdfplugin: https://github.com/asdf-vm/asdf-nodejs
- Install the Ruby
-
Node:
- In your terminal, enter the project's root directory.
- Manually install the Node version listed in
.tool-versionsor install usingasdf:asdf install - Run
npm installto install dependencies.
-
Ruby:
- In your terminal, enter the project's root directory.
- Manually install the Ruby version listed in
.tool-versionsor install usingasdf:asdf install - Install bundler:
gem install bundler - Run
bundle installto install dependencies. - Run
./bin/rails db:setupto set up the database. - Load example data into the dev database via:
./bin/rails db:fixtures:load
- In your terminal, enter the project's root directory.
- Start the backend:
./backend/bin/rails server - Start the frontend:
cd ./frontend/ && npm run dev - Visit the indicated frontend URL.
- In your terminal, enter the project's root directory.
- Run:
cd ./backend && ./bin/rails test
- In your terminal, enter the project's root directory.
- Run:
cd ./frontend && npm run test
- This project took a lot longer than 2 hours, but it was a ton of fun.
- The tests are a bit light; this is a function of ^^.
