REST API for KBTI (Kamus Besar Teknologi Informasi) built with Typescript + AdonisJs 5
cp .env.example .env node ace generate:key npm install node ace migration:run node ace db:seed
mkdir -p build/tmp/uploads
node ace migration:run
node ace migration:fresh
node ace db:seed
node ace create:user
npm run start
yarn dev
npm run build && cd build && npm ci --production && node server.js
CI= npm run build
mysqldump --host=127.0.0.1 --user=root --default-character-set=utf8 "cfi_admin" > "C:\laragon\www\cfi-admin\cfi_all_admin.sql" mysqldump --host=127.0.0.1 --user=root --default-character-set=utf8 "cfi_admin" > "C:\laragon\www\cfi-admin\cfi_admin_all-2022-11-05.sql"
mysql --host=127.0.0.1 --user=root -e "DROP DATABASE if exists kbti_cuoma
;CREATE DATABASE kbti_cuoma
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
node ace make:controller Provider -r
-
Clone the project
git clone https://github.com/CPSG-31/kbti-backend.git
-
Go to the project directory
cd kbti-backend
-
Install dependencies
npm install
-
Copy
.env.example
to.env
-
Create a database and set your database config in
.env
-
Run your mysql server
-
Run migration
node ace migration:run
-
Run seeder
node ace db:seed
-
Start the server
npm run start
To run this project, you will need to add the following environment variables to your .env file
CORS_ORIGIN='*'
- Framework : AdonisJS 5
- Database : MySQL
- API Docs : adonis5-swagger
- Linter : ESLint