-
Setup vanilla project using vite
npm create vite@latest client --template vanilla
-
Provide only assets folder as a starter. Vite creates everything else
-
Install all dependensis using
- Go to OpenAI, signup and create a secret key. Make sure to copy it as it'll be shown only once!
- Create a script in package file to run the server instead of manually running it
- Use Render for free server deployments.
- Create new account
- Click on the New and select Web Service
- Publish the repo to github
- If repo is private:
- Connect your github account to Render
- Select the repo
- If repo is public:
- Provide repo URL
- If repo is private:
- Mention the root folder of server, in this case it's 'server'
- Mention the command to run the server i.e., npm run server
- And deploy...
- Download the code/ clone the repo
git clone https://github.com/YogeshDPalve/codex.git- Install the dependencies
npm install i- Run the development server
npm run server- Run the client
npm run dev- Open the link in browser and enjoy!
