GithubHelp home page GithubHelp logo

backend-todo-mine's Introduction

Todo App

Preview

📝 Índice

🎯 Sobre

  • Clone de Lista de Tarefas do design Todo app UI design do dribbble e aplicado Javascript Funcional no frontend para criação dos elementos (createElement). Observação: botão de data/hora apenas ilustrativo, não está funcional.

  • Desenvolvido API backend com Node.js/Express e base de dados com o ORM Prisma.

  • Utilizado a recurso Static Public do Express para desenvolvimento do frontend e body-parser como middleware nas chamadas à API.

⚒ Linguagens e Ferramentas

💡 Aprendizados

  • Desenvolvimento de uma API
  • Modelagem de base dados com ORM Prisma
  • Static Public do Express para desenvolvimento do frontend em conjunto com o backend (app.use(express.static('public')))
  • Biblioteca body-parser que serve como um middleware do backend para analisar as informações do body enviadas do frontend para backend.
  • Diversas linhas de comandos utilizadas no decorrer do desenvolvimento, confira documentação aqui

🖥️ Como executar localmente?

Clone o projeto:

git clone https://github.com/bernard-silva/backend-todo-mine.git

Instala conforme o que estiver declarado no package.json:

npm install

Obervação: criar um arquivo .env na raiz para uso do SQLite como dev:

DATABASE_URL="file:./dev.db"

Cria o schema para base de dados conforme arquivo .env:

npx prisma migrate dev

Roda o projeto:

npm run dev

English

📝 Index

🎯 About

  • Clone of Todo app UI design from dribbble and applied Functional Javascript to the frontend to create the elements (createElement). Note: date/time button for illustration purposes only, not functional.

  • Developed backend API with Node.js/Express and database with ORM Prisma.

  • Used the Static Public feature of Express to develop the frontend and body-parser as middleware in API calls.

⚒ Languages and Tools

💡 Learnings

  • Development of an API
  • Database modeling with ORM Prisma
  • Express Static Public for frontend development in conjunction with the backend (app.use(express.static('public')))
  • Body-parser library that serves as a backend middleware to parse body information sent from the frontend to the backend.
  • Several command lines used during development, check documentation here

🖥️ How to run locally?

Clone the project:

git clone https://github.com/bernard-silva/backend-todo-mine.git

Installs according to what is declared in package.json:

npm install

Note: create a .env file in the root for SQLite use as dev:

DATABASE_URL="file:./dev.db"

Create the schema for the database according to the .env file:

npx prisma migrate dev

Run the project:

npm run dev

backend-todo-mine's People

Contributors

bernard-silva avatar

Stargazers

RyanGG avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.