Simple interview test for Full Stack Developer position at Density Labs.
- Node.js (>= v18.15.0)
- Relational database (e.g. MySQL, PostgreSQL, SQLite, MariaDB, MSSQL)
- Clone the repository:
git clone https://github.com/MrKrrot/interview-test-density-labs.git
- Install dependencies:
npm install # Install server & client dependencies
- Set up environment variables:
DB_DIALECT
: Database dialect (e.g. mysql, postgres, sqlite, mariadb, mssql)DB_HOST
DB_LOGGING
: Enable or disable logging (true, false)DB_NAME
DB_PASSWORD
DB_PORT
DB_USER
DB_TEST_NAME
: Test database nameNODE_ENV
: Environment (development, production)PORT
: Server portVITE_API_URL
: API URL (e.g. http://localhost:5000) (NOTE: This environment variable is for the client)
# Build client & server
npm run build:api
npm run build:client
# Run server & client (production mode)
npm run start:api
npm run start:client
# Run server & client (development mode)
npm run dev:api
npm run dev:client