Oxen.io Website
Go to file
William Grant e4742d5560 dropped live prop from contentful in favour of previews, fixed linting 2021-11-01 17:01:00 +11: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 fixed rich content hyperlinks rendering 2021-10-20 15:23:29 +11:00
constants Telegram fix (#41) 2021-09-25 16:21:48 +10:00
contexts
hooks
pages Develop updates (#45) 2021-10-08 16:33:33 +11:00
public updated session roadmap images 2021-10-20 10:11:36 +11:00
services dropped live prop from contentful in favour of previews, fixed linting 2021-11-01 17:01:00 +11: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
.prettierrc.js
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
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 added security headers with an effective content policy (#43) 2021-09-29 15:00:53 +10:00
package.json dropped live prop from contentful in favour of previews, fixed linting 2021-11-01 17:01:00 +11: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 Develop updates (#45) 2021-10-08 16:33:33 +11:00
tsconfig.json
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.