-
Install npm, nodejs, yarn and postgresdb before deployment, all installation instructions are available online!
-
Setup Ruby version 2.7.2 for project on the Linux OS:
- Installation instructions Ruby 2.7.2.
- RubyMine guide: Settings -> Language & Frameworks -> RubySDK and Gems. Choose rbenv: 2.7.2.
-
Install gems
bundle install
-
Database creation and configuration
sudo apt update sudo apt install postgresql postgresql-contrib sudo apt-get install libpq-dev
sudo -u postgres psql postgres
\password postgres
CREATE DATABASE postgresdb OWNER postgres;
rails generate devise:install rails db:migrate
Solution of abort in rails generate devise:install. I think there is devise_for :installs in your route.rb file and you should comment it out. Then you should try to rerun rails generate devise:install and uncomment route after.
Solution of PG::UndefinedTable: ERROR: relation "users" does not exist
- Delete file from migrate/20201212060305_add_role_to_users.rb (Copy this file anywhere!)
- Start migrate
rails db:migrate
And restore 20201212060305_add_role_to_users.rb in migrate folder and start migrate again
rails db:migrate
Solution of psql: FATAL: Peer authentication failed for user “postgres” (or any user)
- Locate the pg_hba.conf (copy this path and run the next command)
locate pg_hba.conf
- Open the pg_hba.conf
sudo nano /etc/postgresql/.../pg_hba.conf
- This will open ‘pg_hba.conf’ in nano editor. Now locate this line in the file and scrolling down
and replace it with:
local all postgres peer
local all postgres md5
- Restart service
sudo service postgresql restart
-
Frontend configuration
npm install
If it does not work, refer to the instructions on the link
yarn install
-
Test application
rails s
jest
rspec
-
Notifications
You must be signed in to change notification settings - Fork 0
eiire/outrightshop
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
CRM-system with Rails API and React front-end
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published