Estate Auction is a basic CRUD example of using a Ruby/Rails as a backend API to serve a React/Typescript frontend. The login uses a basic JWT authentication stored in the browsers localstorage to authenticate routes on the frontend. Bidding/Countdown works as intended although needs an after action for after countdowns have ended.
The setups steps expect following tools installed on the system.
- Github
- Ruby 2.6.1
- Rails Rails 6.0.3.4
- React
- npm
- node
git clone [email protected]:Libaration/Estate-Auction.git
Run the following commands to create and setup the database.
bundle exec rake db:create
bundle exec rake db:setup
You can start the rails server using the command given below. (All API endpoints calls from the frontend are on port 3030)
bundle exec rails s --port 3030
And now you can visit the API via an endpoint with the base URL being http://localhost:3030 Endpoints : /users /homes
(You will need node and npm installed globally on your machine.)
npm install
npm start
localhost:3000