This is a Next.js project bootstrapped with create-next-app
.
short-next --typescript --eslint --src-dir
https://codesandbox.io/p/github/smugen/short-next/review-sandbox
First, install dependencies:
npm install
Then, run the development server:
npm run dev
Or, run the production server:
npm run build
npm run start
Before running the server, you need to set the environment variables in .env.local
file.
some example:
# .env.local
SEQUELIZE_URI=sqlite:database.sqlite
Open http://localhost:3000 with your browser to see the result.
Requirements specification is in REQUIREMENTS.md.
.
├── __tests__ // unit tests
├── src
│ ├── components // React components
│ ├── graphql // GraphQL schema and resolvers
│ ├── models // Sequelize database models and GraphQL types
│ ├── pages // Next.js pages
│ │ ├── api/graphql // GraphQL API
│ │ ├── [shortLinkSlug].tsx // Redirect page
│ ├── services // Services for dependency injection
│ ├── utils // Utilities most for front-end