Skip to content

nguyenvanhuan243/remi_api

Repository files navigation

Guidelines For Developers

Table of Contents

1. Introduction

  • This is simple project about getting movies on youtube and show it in your website.
  • Using ruby on rails for backend and reactjs for frontend.
  • Key features: Login, register, view video, create video and real time notification when having new video from users.

2. Prerequisites

  • Ruby 2.6.8
  • Rails 5.0.7.2
  • Redis
  • Sidekiq
  • Postgresql
  • Docker, docker-compose, docker hub, github, render.com server
  • Github actions
  • ReactJS

3. Installation-Configuration

  • Set up front end
git clone https://github.com/nguyenvanhuan243/remi_fe
cd remi_fe
mv .env_localhost .env
nvm use 14
npm uninstall node-sass
npm install [email protected]
npm install
npm run build:dll
npm start
  • Set up backend
git clone https://github.com/nguyenvanhuan243/remi_api
cd remi_api
mv .env_localhost .env
docker-compose up

4. Database-Setup

  • Dont need this step because we are using docker.

5. Running-Application

  • Set up front end
git clone https://github.com/nguyenvanhuan243/remi_fe
cd remi_fe
mv .env_localhost .env
nvm use 14
npm uninstall node-sass
npm install [email protected]
npm install
npm run build:dll
npm start
git clone https://github.com/nguyenvanhuan243/remi_api
cd remi_api
mv .env_localhost .env
docker-compose up

Run test

cd remi_api
mv .env_localhost .env
RAILS_ENV=test rake db:create 
RAILS_ENV=test rake db:migrate
bundle exec rspec spec

6. Docker-Deployment

7. Usage

8. Troubleshooting

  • Full docker disk size: You can increase docker disk size.
  • Missing docker and docker compose: Install if missing it.

Conclusion

  • Thanks for reading !!!