Code Monkey home page Code Monkey logo

movies's Introduction

Movies

CircleCI  Python  Flask  NodeJS  React

1. Introduction

The Movies application provides an easy way to search for movies and add them to your favorites list.

2. Setting up the environment

2.1 Providing the services

This application requires the following services:

  • PostgreSQL as database provider
  • Redis as cache provider

2.2 Creating a virtualenv

mkvirtualenv -p python3 movies

2.3 Installing both Python and Node dependencies

make dependencies

3. Setting environment variables

OMDB_API_KEY: you must ask for a developer API key to OMDB and set this variable with the given value.
DATABASE_URL: PostgreSQL connection address at postgresql://user:passwrod@host:port/database
REDIS_URL: Redis connection address at redis://host:port

4. Running the app

4.1 Development

Development mode requires two separate processes, one for the backend server in Flask and another for the frontend server, which is a Webpack development tool.

Starts backend server:

make run mode=development

Starts frontend server:

make run-front

4.2 Production

Creates the JS bundle:

make build

Starts the application:

make run mode=production

movies's People

Contributors

marcelo-vp avatar

Watchers

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