https://github.com/danielslew/code_cause
Github for Non-Developers - Request help for projects (Rails backend, React frontend)
https://github.com/danielslew/code_cause
rails-api react rspec sqlite3
Last synced: 3 months ago
JSON representation
Github for Non-Developers - Request help for projects (Rails backend, React frontend)
- Host: GitHub
- URL: https://github.com/danielslew/code_cause
- Owner: DanielSLew
- Created: 2020-07-18T18:12:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T20:13:53.000Z (over 3 years ago)
- Last Synced: 2024-04-17T04:11:47.481Z (about 2 years ago)
- Topics: rails-api, react, rspec, sqlite3
- Language: Ruby
- Homepage:
- Size: 1.48 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
### Getting Started:
`bundle install` => will install your dependencies
`rake db:create` => create your development/test databases
`rake db:migrate` => create all the tables in your database
`rake db:seed` => populate the database with data
### Updating
`bundle install` => will install any new dependencies added
`rake db:reset` => will delete db, create db, migrate, and add new seed data
### api
routes:
- `index` will return all of the resource (ie all projects)
- `show` will return one of the specified resource (ie one project)
- `create` will try to create a new resource (ie create a new project)
- `update` will try to update an existing resource (ie update a project)
- `destroy` will try to delete an existing resource (ie delete a project)
`GET /api/v1/projects/:id`
- This means send a `GET` request to `/api/v1/projects/:id` where `:id` is the id of the resource.
`rake routes | grep project` => Will show you all the api endpoints for projects
`rake routes | grep user` => will show you all the api endpoints for users
`rake routes | grep tag` => will show you all the api endpoints for tags
`rake routes | grep message` => will show you all the api endpoints for messages
`rake routes | grep vote` => will show you all the api endpoints for votes