This project is backend project for Software Engineering course (2019/2). Here are guidelines we would like you to follow:
- Member
- Contributing
- Build with
- Getting Started
- Adding dependencies
- Running tests
- Formatting Code
- Documentation
- ธนดล รุ่งจิตวรานนท์ 6031018121
- นนท์ธนัต ธีรธนาพัทธ์กุล 6031019821
- ธนวิชญ์ กฤตวงศ์วิมาน 6031021021
- ชวิน ช่วงชัยชัชวาล 6030124821
- ณัชพล ศรีสังข์ 6031308121
- ภูชิต ชฎาศิลป์ 6031317821
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who participated in this project.
This project is built with:
- MongoDB - NoSQL database
- NestJS - A progressive Node.js framework for building efficient, reliable and scalable server-side applications
nestjs-typegoose
- Typegoose equivalant for@nestjs/mongoose
, removes the need for having a model interface
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need the following softwares to run this project:
- Node.js - Running javascript locally
yarn
- Node.js package manager- Docker - Container platform
docker-compose
- A tool for defining and running multi-container Docker applications
A step by step series of examples that tell you how to get a development env running
-
Fork this repository
-
Clone forked repository to your machine
git clone https://github.com/<your-github-user>/sec1_Numja-Back-End-.git
-
Create file named
.env
, then copyexample.env
and fill the details -
Run the project using docker
docker-compose up
or run in background
docker-compose up -d
To start server with local database, run:
docker-compose -f docker-compose.local.yml up (-d)
To add dependencies, run the following command:
yarn add <package-name>
Some dependencies should be added in devDependencies. To do that, run the following command:
yarn add -D <package-name>
To run tests only once, run:
yarn test
To run tests automatically while editing codes, run:
yarn test:watch
To format codes, run:
yarn format
To open API docs after start server, visit localhost:3000/api
.