If you don't already have them, you'll need to install the following tools:
Note: I recommend you to use nvm to manage NodeJs and npm versions.
After installing nvm
, you can easily get the any version of node
by running nvm install <node_version>
.
nvm
will automatically install the corresponding npm
version.
client/
├── dist/
├── node_modules/
├── public/
│ ├── sample-data.xlsx
│ ├── sample-template.docx
│ ├── genezio.svg
├── src/
│ ├── App.tsx
│ ├── FileUpload.tsx
│ ├── index.css
│ ├── main.tsx
│ ├── vite-env.d.ts
├── .eslintrc.cjs
├── .gitignore
├── index.html
├── package.json
├── package-lock.json
├── postcss.config.js
├── README.md
├── tailwind.config.js
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts
server/
├── node_modules/ (library root)
├── .gitignore
├── index.mjs
├── package.json
├── package-lock.json
├── .genezioignore
└── genezio.yaml
- Install the Genezio CLI globally
npm install -g genezio
- Login to Genezio
genezio login
- Deploy your project
genezio deploy
- Create a
.env
file in theclient
directory and add the following environment variables:
VITE_API_URL=https://<your_project_id>.cloud.genez.io
Note: this value is the same as field Functions Deployed
in the output of the genezio deploy
command.
- Deploy the environment variables
genezio deploy --env client/.env
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install -g genezio |
Installs genezio globally |
genezio login |
Logs in to genezio |
genezio local |
Starts a local server |
genezio deploy |
Deploys a production project |
genezio --help |
Get help using genezio |
Check out:
If you need support or you have any questions, please join us in our Discord channel. We'd love to chat!