This is a full-stack web application for posting articles. Built with Ruby on Rails, React, PostgreSQL and Patternfly.
Before the installation, please make sure to have global installations of-
- node v16 or higher
- npm v9 or higher
- PostgreSQL (if running a local DB instance)
- Ruby On Rails ([email protected] & [email protected])
-
Get the code. Clone this git repository:
git clone https://github.com/girijaasoni/newsletterApplicaton.git cd newsletterApplicaton
-
Execute
bundle install && npm install
to configure the local environment. -
Update the DB configuration in
config/database.yml
-
Perform DB initialization/migration and seeding
$ rails db:create $ rails db:migrate $ rails db:seed
-
Start the development server
rails s
This application uses npm and rails scripts for testing and development.
rails s
: run the development version of the apprails db:create
: perform DB initializationrails db:migrate
: perform DB migrationsrails db:seed
: perform DB seedingnpm run lint:
perform linting of the FE codenpm run test
: perform testing of the FE codebundle exec rubocop:
perform linting of the BE codebundle exec rake test
: perform testing of the BE code
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change or add. Please make sure to update tests as appropriate.