Project Create with React, RailsAPI and AWS
Live Demo
.
Report Bug
·
Request Feature
This project is a Moodle for a pedagogic school in Peru. A user can create an account of a student in the website. The administrator can update the account of a user to be a professor. A professor can create courses, subjects, schedules, upload documents in the Website. A student can view the courses, subjects, schedules and download the documents. There is guest account to have a view of the courses with less options.
- npm version 6.13.4 or more
- node version 8.17.0 or more
- ruby version 2.6.5 or more
- rails version 6.0.2.1 or more
- Run:
sudo apt-get update && sudo apt-get install postgresql
- Run:
sudo service postgresql start
- Run:
sudo -i -u postgres
- Run:
psql
- Run:
CREATE USER <user> with encrypted password '<password>';
(with semicolon) - Run:
ALTER USER <user> createdb;
- Back-end: (Ruby on Rails), create this file:
config/local_env.yml
* e.g:DATABASE_USERNAME: <user>
* e.g:DATABASE_PASSWORD: <password>
- Front-end (React), create this file:
client/.env
* e.g:REACT_APP_KEY_API=randomkey123
- clone the repository moodle
- cd in to the folder and run
bundle install
- run
rails db:create && rails db:migrate && rails db:seed
* (If there are problems with the service of postgresql check DB Section) - cd in to /client folder and run
npm install
- return to root folder and run
rails start
- wait until both servers will be initialized
- go to localhost:3000
- A dashboard for a director of the pedagogic school.