Giter Site home page Giter Site logo

ep-cool-movies's Introduction

Introduction: Coolmovies challenge

Both challenges (web and mobile) requires coolmovies-backend running. Check it out below.

Please do not push directly to this repo to submit your work, either submit a fork of this or create a new repo from a clone of this manually and submit that

Please work on this project like you would your normal job. We don't want to see mono-commits and for your commit history to be "First Commit" -> "Project Finished". "First Commit" -> "Add component" -> "Add component" -> "Editing of reviews" -> ... is preferred.

Web version challenge

Please take a look at the README inside of coolmovies-frontend for the details.

Mobile version challenge

Please take a look at the README inside of coolmovies-mobile for the details.

Requirements

  • Docker, a recent version (>= 20)
  • Docker Compose (one compatible with above docker)
  • Your local ports 5432 and 5001 are free (not running another postgres server, for instance)

You need docker and docker compose installed on your machine. It supports Linux, MacOS and Windows.

If it's your first time, you can follow the official instructions: https://docs.docker.com/desktop/ https://docs.docker.com/compose/install/

Running the server

cd coolmovies-backend
docker-compose up

Wait for a log message like this: PostGraphile v4.12.3 server listening on port 5000 (just keep in mind that we are going to use port 5001)

Now try to connect to GraphiQL and play around with the schema: http://localhost:5001/graphiql

The actual endpoint to run your queries and mutations: http://localhost:5001/graphql

Play around with some examples

Now that your backend is working, you can play around with some queries and mutation that we already built as example. Keep in mind that running mutations here you will be actually mutating the data in your backend, but don't worry if you have an accident! In the next section we explain you how to reset your server database.

We are using Insomnia to provide you some examples. If you don't know about Insomnia you can think about it as another Postman application.

You can install Insomnia from here: https://insomnia.rest

Once that you have it running, you can import Insomnia_Collection.json from the backend folder.

Reinitializing the database with seed data

So you were playing with the mutations and deleted something you shouldn't, no problem!

Go to the coolmovies-backend folder using your preferred terminal, then:

docker-compose down
docker volume rm coolmovies-backend_db
docker rmi coolmovies-db:latest
docker-compose up

If you want also to rebuild the Postgraphile Server, run this before the up command.

docker rmi coolmovies-graphql:**latest**

Good luck and have fun!

The ecoPortal Team

ep-cool-movies's People

Contributors

pedroroweder avatar

Watchers

James Cloos avatar  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.