This application is simple Customer Support ticketing system..
- Client: React + Redux (start with create-react-app)
- Server: Rails5 API
- Add user API on Rails.
- Add Request API on Rails5.
- Add Application Client with React.
- Convert from react to react-redux. (No api access)
- Update client to access Web API.
- bundle install
bundle install
orbundle exec install
orbundle
. - create
config/database.yml
fromdatabase.yml.sample
and place your database credential. - create database using
rake db:create
orrails db:create
. - run database migration
rails db:migrate
orrake db:migrate
- run application server using
rails s -p 8000
.
$ cd eHelp
$ bundle install --path vendor/bundle
$ rails db:create
$ rails db:migrate
$ rails s -p 8000
=> Booting Puma
=> Rails 5.1.2 application starting in development on http://localhost:8000
=> Run `rails server -h` for more startup options
Puma starting in single mode...
- Open another console, go to client folder
- install
npm
usingnpm install
- run application using
npm start
$ cd ./client
$ npm install
$ npm start
Compiled successfully!
The app is running at http://localhost:3000/
notice For launching the two server, you should assign different port to each server. notice client application will expect application is running on port 8000. notice I am assuming you have nodejs setup on your machine.