Passwords and logins are for example, you can use them or add your own. Also do not forget to update them in api/config/config.json
- Create role
CREATE ROLE corma WITH LOGIN PASSWORD 'root';
- Create database
CREATE DATABASE corma_dev;
- Grant privileges
GRANT ALL PRIVILEGES ON DATABASE corma_dev TO corma;
cd api
- Install dependencies
npm install
- Run migrations
npx sequelize-cli db:migrate
- Start
npm run start
To create a message you can create one manually or using API endpoint localhost:3001/create-message
You have to pass JWT token in headers, and the body format is
{
"content": "azeazeazeae"
}
cd app
- Install dependencies
npm install
- Start
npm run start