These instructions will help you set up and run the project on your local machine.
need mysql to be installed on your local machine
-
Clone the repository:
git clone git@github.com:salamat9/xim_tech_task.git
-
Navigate to the project directory:
cd ximxim
-
Install dependencies:
npm install
create .env file at root directory with these keys
PORT=
DB_USERNAME=
DB_PASSWORD=
DB_NAME=
DB_HOST=
DB_PORT=
JWT_SECRET_KEY=s
JWT_REFRESH_KEY=
ACCESS_TOKEN_LIFESPAN=
REFRESH_TOKEN_LIFESPAN=
at src/config/db.json fill these json values with your database credentials it need to work with sequelize
{
"username": "",
"password": "",
"database": "",
"host": "",
"dialect": "mysql"
}
Before running the application, you need to apply database migrations using Sequelize.
npx sequelize db:migrate
at root folder create uploads directory
npm run dev
write me on telegram https://t.me/sa1amat9