(This project is in development yet 🔧
).
I'm building this API to my course, because I have one last work to present, and show the skills that I learned in the course.
🔵 Login and register with JsonWebToken authentication;
🔵 Questionnaire with questions to collect the user preferences about categories;
🔵 The app will automatically list diary activities to user to improve his life style and prevent mental ilnesess;
🔵 User can make feedback about activities, and it will change the algorithm about automatically listing;
🔵 The ADMIN can make upload of files, like musics, videos and audios, to use in activities;
🔵 Admin can make the basic CRUD, to activities, files, questions and categories;
- Singleton pattern
- Service pattern
- Repository pattern
- Some SOLID concepts
- Node v14.17.1 (version used to build the API)
- Package Manager (npm or yarn)
- PostgreSQL
Clone this repository with this command:
git clone https://github.com/Sobraloser/TCC_API_Typescript.git
And then, open the repository local folder, and install all dependencies with the following commands:
yarn
or if you use npm:
npm install
after this, let's run the migrations:
yarn typeorm migration:run
or
npm run typeorm migration:run
Create an account in Cloudinary, take your API secrets and put in .env
file.
(dont forget to put some secret
in TOKEN_SECRET
field, he's responsible to turn your JsonWebToken
unique)
TOKEN_SECRET= JsonWebToken secret here
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
CLOUDINARY_URL= (Do not forget to fill in this field, it is extremely necessary to work)
Now, let's start the server with dev
script:
yarn dev