junwatu / language-transla-9ea4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to Language Translator

Language Translator is a B2B SaaS application that was generated using ROQ.ai

Running locally

(0) Prerequisites

Make sure these tools are installed and up-to-date:

  • Node
  • NPM (or Yarn)
  • Docker or local database

(1) Clone the repository

(2) Setup environment variables

  • Login to ROQ Console (opens in a new tab) and go to "Project Details"
  • In the environment named "Local Environment", click the "Copy Env File" button and copy the entire output.
  • Important: If your application is not running on http://localhost:3000/, change the URL in the environment's setting page before copying the output.
  • Create a new file called .env in the root of your project and paste the content in.
cp .env.example .env

(3) Install database

There are two options for installing a database:

  1. You can install any database yourself that is supported by PrismaORM
  2. or you can install Postgres by using Docker. Make sure no other Postgres instance is running on the same machine.
docker-compose up

In any case, you need to add the configuration to your .env file:

DATABASE_URL

(4) Install dependencies and start the application

# With npm
npm install
npm run dev

or

# With Yarn
yarn
yarn dev

Now you can open your app at http://localhost:3000.

Further documentation

To learn more about ROQ UI components and APIs, take a look at ROQ Documentation

About

License:MIT License


Languages

Language:TypeScript 98.8%Language:CSS 1.1%Language:JavaScript 0.1%