Before you try to run this project locally, you must have both the React & NestJS project, as well as a SQL database. I use MySQL, but you can switch to another database like PostgreSQL very easily.
- Clone this repository and install all dependencies.
- cd app
- Run the project using the
start:dev
script using eithernpm
,yarn
, or whatever package manager you use. - There is no landing page, the main routes are:
/register
route to create an account/login
to login to the app/conversations
is where all the magic happens
- Node.js v16
- MySQL Server (or any SQL database that is supported by TypeORM).
-
Clone the repository.
-
cd packages
-
Run
yarn install
to install dependencies. -
Create a
.env.development
file in the root directory and paste the following:PORT= MYSQL_DB_HOST= MYSQL_DB_USERNAME= MYSQL_DB_PASSWORD= MYSQL_DB_PORT= MYSQL_DB_NAME= COOKIE_SECRET=
PORT
The port your server will run onMYSQL_DB_HOST
The hostname for your MySQL database serverMYSQL_DB_USERNAME
The username for your MySQL databaseMYSQL_DB_PASSWORD
The password for your MySQL user accountMYSQL_DB_PORT
The port your MySQL server is running on (default 3306)MYSQL_DB_NAME
The name of your database (be sure to create it first otherwise an error will be thrown).COOKIE_SECRET
Can be any string that can be used to encrypt & decrypt your cookie.
-
Run
yarn start:dev
ornpm run start:dev
depending on which package manager you use to start the project in development mode.