Giter Site home page Giter Site logo

brurez / petitions-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.25 MB

Municipal Petition app built using NextJS, Typescript, Rails and GraphQL

Ruby 39.23% JavaScript 0.72% SCSS 0.02% HTML 2.80% Shell 0.08% CSS 0.97% TypeScript 56.18%
graphql nextjs react ruby typescript rubyonrails

petitions-app's Introduction

Municipal Petition App

Live application

https://final-project-two-opal.vercel.app/

Stack

  • Ruby on Rails: GraphQL, Pundit
  • NextJS: MUI, Google Maps, Apollo
  • Postgres

How to execute locally

This application was configured to run locally using the host machine for the Ruby on Rails and Next JS server but use Docker to run the Postgres database. To be able to upload fields you need to setup the GOOGLE_APPLICATION_CREDENTIALS environment variable as described on "Steps".

Steps

  1. Stop host Postgres if any to release port 5432
  2. Execute docker-compose up
  3. Install RoR dependencies: bundle install
  4. Install JS dependencies: cd client and yarn install
  5. Set up database: bin/rails db:create, bin/rails db:migrate
  6. Create an .env file at the root of the project and add GOOGLE_APPLICATION_CREDENTIALS variable.
  7. Run the RoR and Next JS servers: yarn dev

How to run tests

Back end

bundle exec rspec

Front end

yarn test

petitions-app's People

Contributors

brurez avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.