https://final-project-two-opal.vercel.app/
- Ruby on Rails: GraphQL, Pundit
- NextJS: MUI, Google Maps, Apollo
- Postgres
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".
- Stop host Postgres if any to release port 5432
- Execute
docker-compose up
- Install RoR dependencies:
bundle install
- Install JS dependencies:
cd client
andyarn install
- Set up database:
bin/rails db:create
,bin/rails db:migrate
- Create an
.env
file at the root of the project and addGOOGLE_APPLICATION_CREDENTIALS
variable. - Run the RoR and Next JS servers:
yarn dev
bundle exec rspec
yarn test