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.
- Clone the latest version of the repository
git clone https://github.com/glitchkyle/socialink-backend.git
- Navigate to the repository
cd socialink-backend
- Create an environment variable file
.env
in the root directory usingtouch .env
. - Copy the latest environment variables on to the
.env
- Start the development container
docker-compose up --build -d
- Run
npm install
to install project dependencies - Setup the database
npm run migration:run
- Code away!
npm run migration:create src/database/migrations/[name-of-migration]
npm run migration:run
npm run migration:revert
npm run schema:drop