Coder Social home page Coder Social logo

graphql_meetup's Introduction

README

This application is a practical part for the GraphQL webinar. It contains request specs for all queries and mutations. A part of requests has been implemented during the webinar. You should implement the rest of them.

Running tests

bundle exec rspec

Using IDE

You can import requests into Insomina IDE by going into the preferences: Application -> Preferences -> Data -> Import data. Insomnia data file (Insomnia_GraphQL_Meetup.json) is located in the root directory of this app.

ENV variables

Create env.*.local files for development and test environments based on env.*.local.example files.

Database

Run bundle exec rails db:create db:migrate db:seed to create the database and fill it with seeds if you are not using docker. If you are using docker run docker-compose exec rails rake db:seed Seed user account data: email: [email protected] password: password

Linters

Setup overcommit to run linters and udpate GraphQL schema automatically before every commit

Credentials

Run EDITOR=nano bundle exec rails credentials:edit --environment test and EDITOR=nano bundle exec rails credentials:edit --environment test to edit credentials. Note: This app was created for educational purposes. It contains development.key and test.key. Always add your keys to .gitignore in real-life applications.

Running application with Docker

Run docker-compose up (or docker-compose up --build if you've done some changes) to run the app on port 3000. To enter rails console the container run docker container exec -it graphql_meetup_rails_1 rails c. To stop the containers run docker-compose down. To stop the containers and remove volumes run docker-compose down --volumes.

graphql_meetup's People

Contributors

yaorlov avatar elenasokolyk avatar bl0rch1d avatar kolyanjy avatar dependabot[bot] 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.