Ribul is a twitter-like social network for sharing short messages. It is mainly built with Vue and Express.
This project is for learning purpose only. It is not intended to be used in production.
- API Document: backend/docs/API Document/README.md
- This page is not finished yet
-
write
.env
filecp .env.example .env
Then, edit the
.env
file and fill in the correct values. -
start the SQL server and Redis with docker
docker-compose up -d
-
write
backend/config.json
filecd backend cp config.json.example config.json
Then, edit the
config.json
file and fill in the correct values. -
install dependencies
npm install
-
for the first time, initialize the database and generate the test data. If you have already initialized the database, you can skip this step.
node initDatabase.js node generateFakeData.js
-
start the server
node app.js
-
write
frontend/.env
filecd frontend cp .env.example .env
Then, edit the
.env
file and fill in the correct values. -
install dependencies
npm install
-
start the server
npm run dev