Member system which user can browse products and upgrade premium user.
$ git clone [email protected]:kken339039/Membership.git
- Ruby version 2.4.4
- Rails version 5.2.0
- postgres
- devise
- rolify
- postgres
- devise
- rolify
- docker-compose
docker-compose up -d (-d is run on background)
- install postgres from postgresql.org
https://www.postgresql.org/download/
- database.yml
cp ~/Memnership/config/database.example.yml ~/Memnership/config/database.yml
- set
username
andpassword
- Install need Gem
$ bundle install
- Database creation
$ rails db:create
- Database Migration
$ rails db:migrate
- Run Test Case
$ rspec
- Run Rails Server (default port: 3000)
$ rails s
- Create Fake data
$ rails db:seed:rake db:seed:fake_records
Use CircleCI(https://circleci.com/). All pushes, pull requests are tested, it include run rspec
- Admin User email: [email protected], password: abc12345
- Premium User email: [email protected], password: abc12345
- Normal User email: [email protected], password: abc12345
- A user can register as a normal user
- A user can browse products on this website
- A user can choose to purchase premium membership(skip payment)
- A premium member can see products with discount prices
- A user can be set as admin
- An admin can create/edit products on this website
- A product would have product price/name/image