Skip to content

Instantly share code, notes, and snippets.

View Ajitpatil92002's full-sized avatar
🏠
Working from home

Ajit Patil Ajitpatil92002

🏠
Working from home
View GitHub Profile
@ArcRanges
ArcRanges / gist.md
Last active April 28, 2024 14:30
aws-ec2-nextjs

Instructions to properly set up a production-ready NextJS App with AWS

This is a summary of how to start your own NextJS app, create the repo on Github, upload later in an AWS EC2 Instance and automate the process with AWS Codebuild, CodeDeploy, & CodePipeline.

After following these instructions you should be able to:

  • Create a NextJS App
  • Create an AWS EC2 instance
  • Be able to SSH to an EC2 instance
  • Prepare the instance as a Node environment
  • Configure Nginx service for proper routing
  • Configure domain and add SSL
@roscioli
roscioli / react-table-async-pagination
Created December 20, 2019 19:13
react-table async pagination demo
import React from "react";
import styled from "styled-components";
import { useTable, usePagination } from "react-table";
import namor from 'namor'
const range = len => {
const arr = []
for (let i = 0; i < len; i++) {
arr.push(i)