Sanazoo
SanaZoo is a very popular zoo !
First created in C with XML files, it is now developed with nodejs and swagger, for your eyes only
Our project
In this school project, we have to realize a complete API to manage a zoo, using Express and Sequelize as a base.
This project has been tested and integrated both on heroku, but also thanks to docker whose image is detailed below
Project Syllabus : Syllabus.pdf
Gantt chart
This project was carried out using a gantt chart :
Data model used for DB
Here is our DB model used for this project :
Contributions
Information about code
Docker integration
Our docker image is built in 2 step :
This reduce drastictly the size of the image
## Stage 1 building the code
FROM node:lts-alpine as builder
WORKDIR /usr/app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
## Stage 2 final stage with builded code
FROM node:lts-alpine
WORKDIR /usr/app
COPY package*.json ./
RUN npm ci --production
COPY --from=builder /usr/app/dist ./dist
ENV PORT=3000 \
DB_PORT=3306 \
DB_DRIVER='mysql' \
DB_HOST='localhost' \
DB_NAME='zoo' \
DB_USER='root' \
DB_PASSWORD=''
CMD node dist/src/index.js
Env
empty
DB password
Main dependencies
.env file
Argon2
API Endpoints
Postman Environment
You can check our endpoints with postman directly on this URL: https://documenter.getpostman.com/view/11568150/TzJvdwNA
API Description :
Swagger
This project contain a complete swagger test environment to use API, you can access it
on https://domain.example/swagger
It look FABULOUS :


