Giter Site home page Giter Site logo

ms-recipes's Introduction

M&S Recipes

This is recipes project to show an approach to integrate Next, Apollo, and Contentful.

The project is a Next app that gets Contentful data using Apollo and GraphQL queries. The project has two pages:

  • Homepage: shows a list of recipes
  • Recipe detail: Each recipe detail page

Getting Started

Please check your node version:

node -v

First, install the dependencies:

yarn install

Installing

####How to add the environment variables:

First create a local env file:

cd <project-root> folder
touch .env.local

Open .env.local file and add these environment variables and their corresponding values:

CONTENTFUL_ACCESS_TOKEN=
CONTENTFUL_ENVIRONMENT=
CONTENTFUL_SPACE_ID=

then run the project

yarn dev

Open http://localhost:3000 with your browser to see the result. Make sure 3000 port is available and your page is accessible.

Analyze the build

yarn analyze

Built With

  • NextJS - The web framework used.
  • ReactJS - The library used to build the website
  • Yarn - Dependency Management with Yarn
  • Styled-Components - CSS Styled-Component to create beautiful pages
  • Apollo - Data Fetching with Apollo GraphQL Client
  • Contentful - Contentful API reference

Repository referenced to create Boilerplate

*NextJS Official Repository Examples - Thanks to everyone who contributed to this project.

Analyze

Analyze the build

Contributing

Not available right now. ;)

TechDebt

  • Create Global Stylesheet for better optimisation.
  • UI Improvements

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

ms-recipes

ms-recipes's People

Watchers

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