Giter VIP home page Giter VIP logo

chitchaty's Introduction

Chitchaty

Chitchaty can answer almost any questions you have in mind. It is running Chat GPT in the background.

Project Setup

  1. If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)

  2. Clone this repository

  3. Navigate into the project directory

    cd chichaty
  4. Install the requirements

    npm install
  5. Make a copy of the example environment variables file

    On Linux systems:

    cp .env.example .env

    On Windows:

    copy .env.example .env
  6. Add your API key to the newly created .env file

    OPENAI_API_KEY=[ADD API KEY]
  7. Add your local MongoDB URI .env file

    MONGO_LOCAL_URI=[ADD LOCAL MONGO DB INSTANCE HERE]
  8. Add your production MongoDB URI .env file.

    MONGO_PROD_URI=[ADD PRODUCTION MONGO DB INSTANCE HERE]
  9. You may change the default env settings. Change the NODE_ENV if you want to simulate different node environment during the development of your app.

     NODE_ENV=development
     PORT=5090
  10. Run the app

npm run dev

You should now be able to access the app at http://localhost:5090! You may also check the live demo version of chitchaty: https://chitchaty.herokuapp.com.

Heroku Deployment

NOTE: The project provides also the necessary setup for your heroku deployment.

  1. Install the Heroku CLI
  2. Download and install the Heroku CLI.
  3. If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
heroku login
  1. Create a new Git repository. Initialize a git repository in a new or existing directory
 cd my-project/
 git init
 heroku git:remote -a [APP_NAME]
  1. Deploy your application. Commit your code to the repository and deploy it to Heroku using Git.
 git add .
 git commit -am "make it better"
 git push heroku master
  1. For existing repositories, simply add the heroku remote
 heroku git:remote -a [APP_NAME]
  1. Add the following environment variables to the heroku dashboard.Got to your app(chitchatty) > settings > Config Vars.
 MONGO_PROD_URI
 OPENAI_API_KEY

chitchaty's People

Contributors

markapiado avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.