Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.3 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.3 KB

arty

Installation

# Install mysql

# Install dependencies
$ npm install

# Create mysql user
$ mysql -u root
mysql> CREATE USER 'artyUser'@'localhost' IDENTIFIED BY 'artyarty';
mysql> GRANT ALL PRIVILEGES ON arty.* TO 'artyUser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

# Create database & run migrations
$ npx sequelize db:create
$ npx sequelize db:migrate

# Copy .env.example to .env (update vars as needed)
$ cp .env.example .env

Commands

Command Description
npm run dev Start ExpressJS server in development with Nuxt.js in dev mode (hot reloading). Listen on http://localhost:3000.
npm run build Build the nuxt.js web application for production.
npm start Start ExpressJS server in production.

Migrations

To run migrations:

$ npx sequelize db:migrate

To generate skeleton migration file in api/migrations/:

$ npx sequelize-cli migration:generate --name migration-skeleton

Logging

Server logs are captured using winston and morgan and stored in /logs. See api/lib/logger.js for logger configs.

Nuxt errors are logged to Sentry using the Sentry module for Nuxt.