forked from cerc-io/snowballtools-base
zramsay
17640d3133
Co-authored-by: zramsay <zach@bluecollarcoding.ca> Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Reviewed-on: cerc-io/snowballtools-base#38 Co-authored-by: zramsay <zramsay@noreply.git.vdb.to> Co-committed-by: zramsay <zramsay@noreply.git.vdb.to> |
||
---|---|---|
.. | ||
.storybook | ||
public | ||
src | ||
.env.example | ||
.eslintrc.cjs | ||
.gitignore | ||
.node-version | ||
.prettierignore | ||
.prettierrc.json | ||
chromatic.config.json | ||
index.html | ||
package.json | ||
postcss.config.js | ||
README.md | ||
reload-dev.sh | ||
tailwind.config.js | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |
frontend
This is a vite react nextjs project in a yarn workspace.
Getting Started
Install dependencies
In the root of the project, run:
yarn
Build backend
yarn build --ignore frontend
Environment variables
Local
Copy the .env.example
file to .env
:
cp .env.example .env
Staging environment variables
Change in deployer/deploy-frontend.staging.sh
Production environment variables
Change in deployer/deploy-frontend.sh
Run development server
yarn dev
Deployment
From the root of the project,
Staging
cd packages/deployer && ./deploy-frontend.staging.sh
Production
cd packages/deployer && ./deploy-frontend.sh
Deployment status
Check the status of the deployment here