Git Product home page Git Product logo

dahlia-website's Introduction

WebsiteDiscordReleasesDonateDocumentation

dahliaOS Website

Website GitHub

  • Official, one and only website for the dahliaOS project
  • Find it by clicking here!

Contribute

If you're interested in contributing to the project, please refer to CONTRIBUTING.md

Install dev tools

Local testing

To locally test the website:

Step 1. Install dependencies:

Install node modules required to run the website:

$ yarn

or

$ npm i

Step 2. Dev-start the NextJS server:

$ yarn dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
info  - Using external babel configuration from /Users/loosk/Documents/GitHub/website/.babelrc
event - compiled client and server successfully in 4.5s (970 modules)

NextJS dev server has hot reloading, so no need to restart the instance when its running!

Step 3. Build:

After doing your contributions, test your changes for sure by building

$ yarn build
info  - Using webpack 5. Reason: no custom webpack configuration in next.config.js https://nextjs
.org/docs/messages/webpack5
info  - Checking validity of types
info  - Creating an optimized production build
info  - Compiled successfully
info  - Collecting page data
info  - Generating static pages (7/7)
info  - Finalizing page optimization

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
   (ISR)     incremental static regeneration (uses revalidate in getStaticProps)

Done in 44.71s.

Step 4. Start:

$ yarn start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000

In a browser load page localhost:3000. You should now be able to test the website.

Sponsored by

License

Copyright @ 2019-2022 - The dahliaOS Authors - [email protected]

This project is licensed under the Apache 2.0 license

dahlia-website's People

Contributors

bleonard252 avatar code-reaper08 avatar dependabot[bot] avatar etroynov avatar hypebeans avatar larsb24 avatar looskie avatar nmcain avatar nobody5050 avatar quintenvandamme avatar sincerelyfaust avatar winksaville 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.