【文件属性】:
文件名称:pandabize:Pandabize网上商店出售自行车
文件大小:45KB
文件格式:ZIP
更新时间:2021-03-18 04:20:45
Ruby
Pandabize网上商店API
铁路Ruby
PostgreSQL
api
规范
快取
分页
前端:React JS
在此查看
用法
将存储库克隆到本地计算机
$ git clone git@github.com:rOluochKe/pandabize.git
cd进入目录
$ cd pandabize
然后安装所需的宝石(跳过仅在生产中需要的所有宝石):
$ bundle install
创建数据库,运行
$ rails db:create
接下来,迁移数据库:
$ rails db:migrate
用数据播种数据库,运行
$ rails db:seed
测试,使用RSpec运行测试:
$ rspec
最后,您可以在本地服务器上运行应用程序api了:
$ rails s -p 3001
终点
脚踏车
- [GET] Getting all the records -> http
【文件预览】:
pandabize-main
----.gitignore(667B)
----README.md(2KB)
----.rubocop.yml(1KB)
----bin()
--------rails(264B)
--------bundle(3KB)
--------spring(507B)
--------rake(213B)
--------setup(1008B)
----.github()
--------workflows()
----public()
--------robots.txt(99B)
----Gemfile(2KB)
----db()
--------seeds.rb(1KB)
--------migrate()
--------schema.rb(2KB)
----log()
--------.keep(0B)
----.ruby-version(11B)
----app()
--------jobs()
--------views()
--------serializers()
--------mailers()
--------channels()
--------models()
--------controllers()
----.rspec(22B)
----vendor()
--------.keep(0B)
----Gemfile.lock(6KB)
----config()
--------database.yml(3KB)
--------spring.rb(97B)
--------environment.rb(128B)
--------cable.yml(194B)
--------credentials.yml.enc(464B)
--------environments()
--------application.rb(1KB)
--------locales()
--------boot.rb(207B)
--------initializers()
--------routes.rb(299B)
--------storage.yml(1KB)
--------puma.rb(2KB)
----spec()
--------factories()
--------models()
--------rails_helper.rb(3KB)
--------spec_helper.rb(5KB)
--------controllers()
----tmp()
--------pids()
--------.keep(0B)
----storage()
--------.keep(0B)
----config.ru(130B)
----lib()
--------tasks()
----Rakefile(227B)