Skip to content

Let's build the Future of Development with Web3 🦄

Notifications You must be signed in to change notification settings

feature-sh/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEATURE

The front-end for FEATURE.sh, built with NextJS and TailwindCSS.

Development

Docker

A development Dockerfile has been set up to ease the development process. One can execute the following script to build and run an instance of the dev container:

npm run docker-dev

# OR, if using yarn

yarn docker-dev

The app directory is bind mounted inside the container in development, which means that every change made on the host also impacts the running container.

Bare metal

Install dependencies and start the dev server as follows:

npm install && npm run dev

# OR, if using yarn

yarn install && yarn dev

Production

Docker

A production Dockerfile has been created to easily deploy the app. To build and run an instance of the production image, execute the docker-prod node script:

npm run docker-prod

# OR, if using yarn

yarn docker-prod

Bare metal

Install dependencies, build, and start the production server as follows:

npm install && npm run build && npm run start

# OR, if using yarn

yarn install && yarn build && yarn start

Format codebase

The codebase is formatted using the prettier tool. Issuing the command npm run format or yarn format will make use of the local installation of prettier to format the entire codebase.

Internationalization

Internationalized routing is handled natively by NextJS through sub-path routing.

Management of translations is done with the next-i18next library. Supported locales can be found inside the public/locales directory. Translations are stored inside different .json files commonly referred as translation namespaces. stored inside different .json files commonly referred as translation namespaces.