Skip to content

rifqiyusrilmuslikhin/forumapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Clone the repository:
    git clone https://github.com/rifqiyusrilmuslikhin/forumapi.git
    cd forumapi  
    npm install
  2. Configure the application:
  • Rename the .env.example file to .env.
  • Open the .env file and update the configuration settings as required.
  1. Run database migrations:
    npm run migrate up
  2. Create configuration for database testing migrations:
    • Create folder config/database
    • Create file test.json in config/database
    • Fill the test.json file. Here is an example of the content of the test.json file:
      {
        "host": "localhost",
        "port": 5432,
        "username": "testuser",
        "password": "testpass",
        "database": "testdb"
      }
  3. Run database testing migrations:
    npm run migrate:test up
  4. Run testing application:
    npm run test:watch  
  5. Start the application:
    npm run start:dev | npm run start

Releases

No releases published

Packages

 
 
 

Contributors