Skip to content

0xYelshayeb/dcgen-app

Repository files navigation

Index App

License

Index App is a simple front-end used to interact with Index and its products.

Local development

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

Getting Started

First, run the development server:

  1. Make a copy of the env file
cp .env.default .env.local
  1. Install all the dependencies
npm install
  1. Start dev mode
npm run dev

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

Testing

Unit tests

Run unit tests in watch mode

npm run test

Contributing

The main purpose of this repository is to continually serve the needs of Index, making it faster, simpler, and easier to use. As new proposals are submitted and the scope of Index's governance evolves, we anticipate this tool will change as well.

We greatly encourage any community contribution that may help Index reach more users and promote greater adoption, so be sure to check out our Contribution Guidelines for ways to get involved with our project.

Style Guide

Absolute imports

Prefer absolute imports over relative imports because this is a loose codebase convention. Refer to Configuring React Absolute Imports For TypeScript if your editor isn't picking up absolute imports.

// Good
import Page from 'components/Page'

// Bad
import Page from '../../components/Page'

Import ordering

Order library imports at the top of the file, then a newline separator, then imports for exported members that are defined in this package.

// Good
import React, { useEffect } from 'react'
import { Container, Spacer } from 'react-neu'

import Page from 'components/Page'
import Explanation from 'components/Explanation'
// Bad
import React, { useEffect } from 'react'
import Page from 'components/Page'
import { Container, Spacer } from 'react-neu'
import Explanation from 'components/Explanation'

License

Index App is MIT licensed.

About

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors