Skip to content

O Labook é uma rede social com o objetivo de promover a conexão e interação entre pessoas. Quem se cadastrar no aplicativo poderá criar e curtir publicações.

Notifications You must be signed in to change notification settings

laisrmacedo/labook-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Project - Labook

📝 Description

User management API, posts and interactions made on the social network Labook. It is an express server back-end application with SQLite3 database, where there is data protection and code organization based on layered architecture concepts. It aims to promote connection and interaction between people. Those who register in the application will be able to create and like publications.

DATABASE

diagramas https://dbdiagram.io/d/63d16443296d97641d7c1ae1

📜 Documentation

https://documenter.getpostman.com/view/24460805/2s93CRJWGq

💻 Installation Instructions

  1. Clone the repository.
  2. In NPM package manager run:
npm i
  1. Create your own file file-name.db on folder database.
  2. Open the file labook.sql and run the table creation commands.
  3. Create a file called .env in the root of the project to place these environment variables.
#Express Port
PORT=3003
#SQLite database file path
DB_FILE_PATH=./src/database/file-name.db
#Credentials and secret keys
JWT_KEY=chose-a-secret-key
#Token expiration time (exemple: 1 day)
JWT_EXPIRES_IN=1d
  1. Run the server.
npm run dev

🕹 Endpoints

  • Login

USERS

  • GET All Users;
  • POST Create User;
  • DEL Delete User;

POSTS

  • GET All Posts;
  • POST Create Post;
  • PUT Edit Post;
  • DEL Delete Post;
  • PUT Like or Dislike.

🛠 Technologies

  • NodeJS;
  • Typescript;
  • Express;
  • SQLite;
  • Knex;
  • POO;
  • Layered Architecture;
  • UUID;
  • Hashing Passwords;
  • Tokens JWT;
  • Authentication and Authorization;
  • Routing;
  • Postman.

👩‍💻 Author

Laís Rodrigues Macedo
📧 [email protected]
📞 (+49) 174 7781517

About

O Labook é uma rede social com o objetivo de promover a conexão e interação entre pessoas. Quem se cadastrar no aplicativo poderá criar e curtir publicações.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published