https://github.com/wldyslw/cvetyonline
Online shop-window.
https://github.com/wldyslw/cvetyonline
full-stack javascript ruby web
Last synced: about 1 month ago
JSON representation
Online shop-window.
- Host: GitHub
- URL: https://github.com/wldyslw/cvetyonline
- Owner: wldyslw
- Created: 2017-04-21T20:10:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-24T17:30:45.000Z (over 7 years ago)
- Last Synced: 2025-06-13T04:38:37.630Z (about 1 year ago)
- Topics: full-stack, javascript, ruby, web
- Language: Ruby
- Homepage:
- Size: 7.59 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CvetyOnline
Online shop-window.
## Deploying backend
[Install](https://www.postgresql.org/download) PostgreSQL and setup user if needed
[Install](https://github.com/thoughtbot/paperclip/wiki/Requirements#image-processor) ImageMagick
Install gems:
```bash
bundle install --without production
```
or for prodcution
```bash
bundle install --deployment
```
If needed, setup environment for prodcution:
```bash
export RAILS_ENV=production
export SECRET_KEY_BASE=$(rake secret)
export DB_USERNAME=#PostgreSQL user name
export DB_PASSWORD=#PostgreSQL user password
```
Create and setup db:
```bash
rake db:create
rake db:migrate
rake db:seed
```
Then run project locally:
```bash
rails server
```
### Issues
If you are having problems with bcrypt on windows, you can try to find a solution [here](https://github.com/codahale/bcrypt-ruby/issues/142)
## Deploying frontend
Install npm packages:
```bash
npm install
```
Then run project locally:
```bash
npm start
```
...or build project for production:
```bash
npm run build
```