Giter Site home page Giter Site logo

chrisstef / lucky-draw Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 645 KB

A decentralized lottery application built on Polygon using Next.js and Solidity smart contracts.

Home Page: https://lucky-draw-game.vercel.app

JavaScript 2.94% TypeScript 73.67% CSS 3.13% Dockerfile 2.03% Makefile 4.21% Solidity 14.03%
dapp lottery-dapp nextjs solidity smart-contracts typescipt maticnetwork

lucky-draw's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

Run in Docker Environment

Before you begin, you'll need to have Docker installed on your machine. If you haven't already installed it, you can follow the installation instructions for your operating system on the official Docker website: https://docs.docker.com/get-docker/

To run the app in a Docker environment, follow these steps:

  • Clone the repository to your local machine.
  • Navigate to the root directory of the project in your terminal.
  • Run the following command:
docker-compose up --force-recreate

The docker-compose up --force-recreate command starts the container defined in the docker-compose.yml file. The --force-recreate flag forces recreation of containers even if their configuration appears to be unchanged. This is useful when you want to make sure you are running the latest version of the container.

This command will start the container and map port 3000 on the container to port 3000 on your local machine. You can access the app by opening http://localhost:3000 in your web browser.

To stop the container, use Ctrl + C in your terminal or run the following command:

docker-compose down

That's it! You now have the Next.js app running in a Docker container. You can make changes to the app by modifying the files in the pages directory, and the changes will be automatically reflected in the running container.

Learn More

To learn more about Next.js, take a look at the following resources:

lucky-draw's People

Contributors

chrisstef avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

everkrypton

lucky-draw's Issues

Not working properly

First, it keeps showing loading but loads when I remove the loader component, secondly I can't buy Tickets

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.