Skip to content

AnthonyTC89/website-atc

Repository files navigation

Website-ATC

Project Create with React and RailsAPI

Live Demo . Report Bug · Request Feature

Screenshot Screenshot Screenshot

Table of Contents

About The Project

Template for Websites.

Built With

Pre-Installation

  1. npm version 6.13.4 or more
  2. node version 8.17.0 or more
  3. ruby version 2.6.5 or more
  4. rails version 6.0.2.1 or more

Installation

  1. clone the repository website-atc
  2. cd in to the folder and run bundle install
  3. run rails db:create && rails db:migrate && rails db:seed * (If there are problems with the service of postgresql check DB Section)
  4. cd in to /client folder and run npm install
  5. return to root folder and run rails start
  6. wait until both servers will be initialized
  7. go to localhost:3000

DataBase Setup

  1. Run: sudo apt-get update && sudo apt-get install postgresql
  2. Run: sudo service postgresql start
  3. Run: sudo -i -u postgres
  4. Run: psql
  5. Run: CREATE USER <user> with encrypted password '<password>'; (with semicolon)
  6. Run: ALTER USER <user> createdb;

Local Environment Variables

  1. Back-end: (Ruby on Rails), create this file: config/local_env.yml * e.g: DATABASE_USERNAME: <user> * e.g: DATABASE_PASSWORD: <password>
  2. Front-end (React), create this file: client/.env * e.g: REACT_APP_KEY_API=randomkey123

Contact

About

Template for Website with CMS - React/Material-UI/Rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages