Giter VIP home page Giter VIP logo

amazon-next's Introduction

Amazon Next

E-Commerce Application made with NextJS (SSR Framework for ReactJS)

GitHub language count Made by Laura Beatris Stargazers

About the project   |    Installation   |    Deploy   


Product List

Product List


🚀 About the project

The goal of this project was to learn the fundamentals of NextJS and integrate with external services like the database feature provided by Firebase. The page transitions are made Framer Motion that provides a great api support to Server Side Rendering. Also, i choosed tailwind for styling the most part of the app because of the agility that utility classes are able provide.

🏃 Installation

  // 1 - Git Clone
  
  // 2 - If you're going to use firebase to provide product data, be sure do create a env with the service data. 
        
  // 3 - Installing the dependencies
  yarn install
  
  // 4 - Run the application in the development mode 
  yarn dev
  

🔨 Deploy

Zeit provides a easy way to deploy NextJS applications. You need to create a now.json file with the build configuration.

{
    "build": {
        "env": {
            "SITE_URL": "@site_url",
            "FIREBASE_API_KEY": "@firebase_api_key",
            "FIREBASE_APP_KEY": "@firebase_app_id",
            "FIREBASE_MEASUREMENT_ID": "@firebase_measurement_id",
            "FIREBASE_MESSAGE_SENDER_ID": "@firebase_message_sender_id"
        }
    }
}

To map environment variables, you need to create secrets with the commands provided by the Now CLI

now secrets add <secret-name> <secret-value>

And then use them as the values of the env variables that you want to map inside of the build configuration.


If you have some problem with the application, don't be afraid to contribute sending a issue/pull request, i'll be happy to help. 😃

Made with ♥ by Laura 👋 See my linkedin!

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.