Desktop | Mobile |
---|---|
![]() |
![]() |
- Infinite scroll page
- Single article page
- Contact modal
- XSS (Cross-site scripting) Prevention
- Responsive layout
- Post creation
- Performance
- SEO
- SSR (Server-side Rendering)
- Next.js - Modern framework to render React on the server (SSR)
- DOMPurify and Isomorphic DOMPurify - Sanitize content and prevent XSS
- Phosphor React - Icons library
To run the development server follow the steps:
Create a .env.local
in the root of the project and put the following content with the API URL:
NEXT_PUBLIC_API_URL="PUT THE API URL HERE"
Run the application:
# NPM
npm install && npm run dev
# Yarn
yarn install && yarn dev
To build and run the project locally follow the steps:
Create a .env.production
in the root of the project and put the following content with the API URL:
NEXT_PUBLIC_API_URL="PUT THE API URL HERE"
Build the application:
# NPM
npm install && npm run build
# Yarn
yarn install && yarn build
After the build, run the application:
# NPM
npm run start
# Yarn
yarn start