Code Monkey home page Code Monkey logo

meme-governance-frontend's Introduction

Meme Governance Frontend

This repo is the frontend for the Meme Governance dApp example. ๐Ÿš€

It contains:

  • Landing page for your project (served on the / path, e.g., http://localhost:8080/)
  • dApp functionality (served on the /dapp path, e.g., http://localhost:8080/dapp)
  • Full integration to NeoLine browser wallet

๐Ÿš€ Written in Next.js, Tailwind CSS, and TypeScript โšก๏ธ

Features

Developer experience first:

Built-in feature from Next.js:

  • โ˜• Minify HTML & CSS
  • ๐Ÿ’จ Live reload
  • โœ… Cache busting

Requirements

  • Node.js version 12
  • npm

Getting started

Run the following command on your local environment:

git clone --depth=1 https://github.com/AxLabs/meme-governance-frontend.git my-project-name
cd my-project-name
npm install

Then, you can run locally in development mode with live reload:

npm run dev

Open http://localhost:8080 with your favorite browser to see your project. For your information, Next JS need to take some time to compile the project for your first time.

.
โ”œโ”€โ”€ README.md            # README file
โ”œโ”€โ”€ public
โ”‚   โ””โ”€โ”€ assets
โ”‚       โ””โ”€โ”€ images       # Image used by the template, it can be replaced by your own images
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ background       # Atomic background component
โ”‚   โ”œโ”€โ”€ button           # Atomic button component
โ”‚   โ”œโ”€โ”€ cta              # Atomic cta component
โ”‚   โ”œโ”€โ”€ feature          # Atomic feature component
โ”‚   โ”œโ”€โ”€ footer           # Atomic footer component
โ”‚   โ”œโ”€โ”€ hero             # Atomic hero component
โ”‚   โ”œโ”€โ”€ layout           # Atomic layout component
โ”‚   โ”œโ”€โ”€ navigation       # Atomic navigation component
โ”‚   โ”œโ”€โ”€ pages            # Next JS pages includes index page
โ”‚   โ”œโ”€โ”€ styles           # Atomic styles component
โ”‚   โ”œโ”€โ”€ templates        # List of blocks components
โ”‚   โ””โ”€โ”€ utils            # Atomic utils component
โ”œโ”€โ”€ tailwind.config.js   # Tailwind CSS configuration file
โ””โ”€โ”€ tsconfig.json        # TypeScript file

Customization

You can easily configure the theme. Please change the following file:

  • public/apple-touch-icon.png, public/favicon.ico, public/favicon-16x16.png and public/favicon-32x32.png: your favicon, you can generate from https://favicon.io/favicon-converter/
  • src/styles/main.css: your CSS file using Tailwind CSS
  • utils/Config.ts: website configuration file
  • src/pages/index.tsx: the index page of the theme use the Base component
  • src/template/Base.tsx: the Base component using component blocks
  • src/templates/*: the list of component blocks
  • src/*: other folders in src are the atomic components used by components blocks

Here is the layer:

  • the entry point: index.tsx in src/pages
  • the Base template: Base.tsx in src/templates
  • use component blocks from src/templates/*
  • use atomic components from src/*

Deploy to production

You can see the results locally in production mode with:

$ npm run build
$ npm run start

The generated HTML and CSS files are minified (built-in feature from Next js). It will also removed unused CSS from Tailwind CSS.

You can create an optimized production build with:

npm run build-prod

Now, your theme is ready to be deployed. All generated files are located at dist folder, which you can deploy with any hosting service.

Acknowledgement

This repo is strongly based on templates provided by CreativeDesignsGuru. Thanks for it! ๐Ÿ‘

License

Licensed under the MIT License.

See LICENSE for more information.


Made with โค๏ธ by AxLabs

meme-governance-frontend's People

Contributors

gsmachado 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.