glitchkyle / socialink-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socialink Backend Repository

Socialink is a simple social media web application that allows users to interact with each other through posts!

This repository contains the API server component for the application.

Setup

  1. Clone the latest version of the repository git clone https://github.com/glitchkyle/socialink-backend.git
  2. Navigate to the repository cd socialink-backend
  3. Create an environment variable file .env in the root directory using touch .env.
  4. Copy the latest environment variables on to the .env
  5. Start the development container docker-compose up --build -d
  6. Run npm install to install project dependencies
  7. Setup the database npm run migration:run
  8. Code away!

TypeORM Migrations

Create migration

npm run migration:create src/database/migrations/[name-of-migration]

Run migrations (Development)

npm run migration:run

Revert migrations (Development)

npm run migration:revert

Drop Database (Development)

npm run schema:drop

About


Languages

Language:TypeScript 95.8%Language:JavaScript 2.7%Language:Dockerfile 1.4%