Skip to content

reactcoder-it/website

 
 

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 - contact@dahliaos.io

This project is licensed under the Apache 2.0 license

About

Official dahliaOS website

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.3%
  • JavaScript 2.7%