This is the backend of the MTAA project. It is a REST API that provides data for the frontend.
- Node.js
- Express.js
- PostgreSQL
- PrismaORM
- Docker
- Docker Compose
- Clone the repository
- Run
npm install
orpnpm install
- Clone the
.env.example
file and rename it to.env
- Fill in the
.env
file with your database credentials and/or insert postgres setup credentials for local testing - Copy all images from
prisma/assets
intopublic/images
- Run
docker-compose up -d
to start the database - Run
npx prisma migrate deploy
to run all the migrations - Run
npx prisma db seed
to seed the database with some data
- Run
npm run dev
to start the server in development mode - Run
npm run start
to start the server in production mode
or
- Run
docker-compose up
to start the server in a docker container