Oxen.io Website
Go to file
William Grant 36cd2ae88b fixed host url for staging 2021-09-23 16:27:32 +10:00
@types Image loading performance (#38) 2021-09-20 17:32:45 +10:00
assets slowed down floating animation, optimised images and svgs and load them eagerly in certain cases 2021-09-20 13:24:57 +10:00
components removed blur placeholders from smaller image elements 2021-09-21 09:56:44 +10:00
constants fixed host url for staging 2021-09-23 16:27:32 +10:00
contexts Rich body lists 2021-02-18 14:28:52 +11:00
hooks Blog home solid 2021-02-08 17:37:50 +11:00
pages fix telegram image previews 2021-09-23 16:13:30 +10:00
public slowed down floating animation, optimised images and svgs and load them eagerly in certain cases 2021-09-20 13:24:57 +10:00
services used contentful preview api so we can fetch drafts 2021-09-22 11:29:20 +10:00
state Add FAQ link to sidebar 2021-04-29 14:34:20 +10:00
types Image loading performance (#38) 2021-09-20 17:32:45 +10:00
utils updated rss tags to use metadata constant 2021-09-19 14:28:05 +10:00
.eslintrc.json upgraded to next11, replaced eslint config with eslint-next-config-next, fixed eslint errors 2021-09-20 12:45:29 +10:00
.gitignore preview route mvp done 2021-09-22 10:52:50 +10:00
.prettierignore Templated structure 2021-01-22 13:43:42 +11:00
.prettierrc.js Templated structure 2021-01-22 13:43:42 +11:00
README.md added accessibility testing use the react-axe plugin 2021-09-20 13:40:20 +10:00
_next onTouch mobile bubble sidemenu 2021-02-19 11:03:28 +11:00
jest.config.js BUILDING WORKS WOOHOOOO 2021-02-19 08:36:08 +11:00
next-env.d.ts upgraded to next11, replaced eslint config with eslint-next-config-next, fixed eslint errors 2021-09-20 12:45:29 +10:00
next.config.js used contentful preview api so we can fetch drafts 2021-09-22 11:29:20 +10:00
package.json Image loading performance (#38) 2021-09-20 17:32:45 +10:00
postcss.config.js changed sass to css and removed node-sass dep, added css-nano dep 2021-09-03 13:32:12 +02:00
tailwind.config.js slowed down floating animation, optimised images and svgs and load them eagerly in certain cases 2021-09-20 13:24:57 +10:00
tsconfig.json Templated structure 2021-01-22 13:43:42 +11:00
update.sh Removed discord 2021-03-02 19:20:08 +11:00
yarn.lock Image loading performance (#38) 2021-09-20 17:32:45 +10:00

README.md

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Setting up your environment

  • Install NVM following the guide at nvm.sh

  • Navigate to project directory

  • Set your NVM version

    nvm install 14.15.0
    nvm use 14.15.0
    
  • Install yarn

    npm i -g yarn
    

Steps to Build to Production

  • Make your local changes

  • Build locally; ensure everything is working

    yarn build
    yarn start
    
  • Commit and push your changes

        git add .
        git commit -m 'My changes'
        git push -u origin
    
  • SSH into the box

    ssh root@116.203.145.108
    
  • Navigate to the directory of the project

    cd /home/ubuntu/oxen.io/
    
  • Pull changes

    git pull origin
    
  • Build on the server

    yarn build
    
  • Restart NGinx and PM2

    systemctl restart nginx && pm2 restart /home/ubuntu/ecosystem.config.js
    

Notes

You can check the status of the server by running

pm2 status

For accessbility testing we use the axe-react plugin.