Skip to content

glitchkyle/socialink-backend

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published