Giter Site home page Giter Site logo

jdiss / nyxo-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hello-nyxo/nyxo-website

0.0 1.0 0.0 56.83 MB

Nyxo website, built with Gatsby, AWS Amplify, React and TypeScript

Home Page: https://nyxo.app

License: MIT License

JavaScript 1.46% TypeScript 97.37% CSS 1.15% Shell 0.02%

nyxo-website's Introduction

Nyxo Website – Better Sleep 💤💤💤

Download iOSDownload AndroidContactNyxo Newsletter

All Contributors

Build, test, and release code style: prettier commit activity release license

This is the website that powers nyxo.app. It's built with the following tools:

  • Gatsby
  • React
  • styled-components
  • aws-amplify
  • Netlify

🚀 Quick start

1. Install the Gatsby CLI.

npm install -g gatsby-cli

2. Setup AWS Amplify + environment variables

In order to develop the site, you need to create file called .env.development in the root of the project. The contents of the file should we following:

INSTAGRAM_API_TOKEN=YOUR_KEY
INSTAGRAM_BUSINES_ID=YOUR_KEY
GTAG_ID=YOUR_KEY
GOOGLE_ANALYTICS=YOUR_KEY
CONTENTFUL_SPACE_ID=YOUR_KEY
CONTENTFUL_ACCESS_TOKEN=YOUR_KEY
CONTENTFUL_ENVIRONMENT=YOUR_ENVIRONMENT
MAILCHIMP_ENDPOINT=YOUR_KEY

We use Contentful so serve our coaching data. When development you can use our public testing environment by placing the following values in it:

CONTENTFUL_SPACE_ID=2bj8pq0ood89
CONTENTFUL_ACCESS_TOKEN=7yCg2oVBg-kQAhPrNTI0935HDiUJ7FYlUyIwM3Tspgg
CONTENTFUL_ENVIRONMENT=public

Our Instagram component will most likely complain that it can fetch data, because you're missing the required tokens. We are working on how to disable this. For now you should be able to skip it.

AWS Amplify In order to run the site, you also need to setup aws-amplify. We have written pretty good instructions about this on our site.

3) Start the site in develop mode.

Next, move into your new site’s directory and start it up:

cd nyxo-website/
gatsby develop
  1. Open the source code and start editing!

Your site is now running at http://localhost:8000. Open the Nyxo directory in your code editor of choice and edit src/pages/index.js. Save your changes, and the browser will update in real time!

At this point, you’ve got a fully functional Gatsby website. For additional information on how you can customize your Gatsby site, see our plugins and the official tutorial.

🤝 Contributing

This project welcomes all contributions. This includes but is not limited to:

  • Blog posts (you're always welcome to contribute to our blog, topics where interested in: sleep and technology)
  • Localization of the site (currently we support finnish and english)
  • Visualizing data (if you want to build a new chart to display your own data in the details page for example)
  • New features (this means everything that makes Nyxo Sleep Coaching / Sleep Data easier to understand / use)

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Kayla Gordon

💻

Perttu

💻

pietnurm

📝

This project follows the all-contributors specification. Contributions of any kind welcome!

nyxo-website's People

Contributors

allcontributors[bot] avatar pietnurm avatar plahteenlahti avatar turq84 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.