App allows for a user:
- to edit the roles for users
- to create a new user with pre-set roles
- select an offering, invest in the offering, and view investments from your investor dashboard
cd [cloned directory] //this is api-rails-app
bundle install
cd user-privileges //this is the sub directory with the react app
npm install
cd [directory]
rails db:create
rails db:migrate
rails db:seed //uses Faker gem to generate some user data
-
Start the rails api server
Make sure you run this command from the top directory
rail s -p 3000//it needs to be running on port 3000
- Start up the react server, first
cd user-privileges
npm start //it will default to 3001 and open web browser
Navigate to http://localhost:3001 to see the front end react app
This project makes use of the following:
(The REACT app is found in /user-privileges)
- Components:
- App
- UserList
- List
- UserForm
- Form
- UserView
- Redux
- Reducers:
- ColumnsReducer
- usersReducer
- Actions:
- addUser, updateUser. setInitialUser
- Router
- Routes
Fetch for API Calls to rails api (see /user-privileges/src/components/Client.js) Redux for managing state in the app Things you may want to cover: