GithubHelp home page GithubHelp logo

cheatcodesam / sublinks-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sublinks/sublinks-frontend

0.0 1.0 0.0 671 KB

License: MIT License

JavaScript 37.85% TypeScript 62.06% CSS 0.09%

sublinks-frontend's Introduction

Sublinks Frontend

This is the default frontend for the Sublinks project. It's built using the NextJS framework and React library.

Together with the Sublinks Core and Sublinks Federation it's creating a federated link aggregation and microblogging platform.

Contributing

Developer Guidelines

CONTRIBUTING.md

Feature Requests / Bugs

Please post any feature requests or bug reports in the repository's Issues section.

Developing

NextJS Telemetry

Before you start be aware that NextJS has started collecting telemetry data when using it.
Here's how you can opt-out: https://nextjs.org/telemetry#how-do-i-opt-out

Prerequisites

  • Node version >=20.0.0
  • NPM version >=9.0.0

Install dependencies

  npm i

Environment Setup

To run this project, you need to set up the necessary environment variables. A template for these variables can be found in the .env.example file.

Docker

A Docker Compose configuration is made available. This provides an environment which contains a real connection to the Sublinks API and other services. As close to a production-like environment we can test and develop towards locally.

To use this Docker setup you first need to authenticate towards GitHub's container registry(GHCR). Please follow this guide to create an access token and authenticate before running the below command.

Run Docker services

  npm run dev:docker

This will expose a NextJS dev environment at http://localhost:3000. It also runs a seeding script which inserts several data entities on startup. To give you something to work with, without having to manually create users and such.

Non-Docker

Run dev server

  npm run dev

This will expose a NextJS dev environment at http://localhost:3000. It makes no API requests and instead uses a couple test data files.

Testing

Lint

  npm run lint

Unit Tests

  TBD

E2E Tests

  TBD

Deploying

TBD

sublinks-frontend's People

Contributors

kgilles avatar dependabot[bot] avatar pdzly avatar cheatcodesam avatar lazyguru avatar

Watchers

 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.