Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.87 KB

README.md

File metadata and controls

67 lines (44 loc) · 1.87 KB

dives-frontend

Getting Started

First, go into your "projects" directory.

Clone this repo:

git clone https://github.com/dives-app/dives-frontend.git
# or if you use SSH key
git clone [email protected]:dives-app/dives-frontend.git
# or GH CLI
gh repo clone dives-app/dives-frontend

Create your own .env.development file:

cp .env.sample .env.development

If you run your backend GraphQL Endpoint on a different address, you can adjust it in this file.

Now you can run the NextJS development server:

yarn dev

Open http://localhost:5000 with your browser to see the app.

Other useful commands

yarn build-start - builds and starts the app locally (with local API)

yarn gen - to run graphql-code-generator

yarn analyze - runs bundle analyzer and generates reports in .next/analyze

yarn as - short for "analyze and start" - runs yarn analyze and serves it using http-server (install it globally if you want to use this command)

yarn clean - removes node_modules and .next folders

CI/CD

Each push to main triggers build and deploy on Google Cloud Run and the website becomes available at dives-txvot44owa-ez.a.run.app.

Knowledge base

Next.js:

Storybook: