This is a Restful API repository for Nibiru Digital Book. This Restful API is built using ExpressJS and PostgreSQL.
- Express
- TypeScript
- PostgreSQL
- TypeORM
- JWT
- Bcrypt
- Cloudinary
- Google APIs
- Google Auth Library
- Nodemailer
- Winston
- Clone this project with
https://github.com/andry-pebrianto/nibiru-digital-book-server.git
- Install package required with
yarn
- Setting .env
NODE_ENV=
PORT=
DB_HOST=
DB_PORT=
DB_USERNAME=
DB_PASSWORD=
DB_NAME=
JWT_SECRET=
EMAIL_FROM=
EMAIL_USER=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
REDIRECT_URI=
GMAIL_REFRESH_TOKEN=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
MIDTRANS_APP_URL=
MIDTRANS_SERVER_KEY=
FRONT_END_URL=
- Migrate database using
yarn run migrate:up
- Run program with
yarn run dev
for development andyarn run start
for production (must be compiled first withyarn run compile
)
Contributors names and contact info:
- Andry Pebrianto
This project is licensed under the MIT License - see the LICENSE file for details