It is a demo app on Express-JS and PostgreSQL(Prisma). You can:
- Login, Register.
- User follow another users.
- CRUD Article, Tag.
Host API http://localhost:3000/api
Run the following command to install dependencies:
npm install
Run the following command to build PostgreSQL instance:
docker-compose up -d postgres
This project depends on some environment variables.
If you are running this project locally, create a .env
file at the root for these variables.
Your host provider should included a feature to set them there directly to avoid exposing them.
Here are the required ones:
PORT=
DATABASE_URL=
JWT_SECRET=
NODE_ENV=production
Run the following command to create/update your database based on existing sql migration scripts:
npm run update-database
The project includes a seed script to populate the database:
npm run seed-db
Run the following command to run the project:
npm run build
npm run start
See OpenAPI(Swagger) http://localhost:3000/docs
- Email - [email protected]
- Linkedin - linkedin.com