Coder Social home page Coder Social logo

nathanmbr / donsaude-technical-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 437 KB

Technical challenge for DonSaúde

License: MIT License

Dockerfile 0.07% TypeScript 99.19% JavaScript 0.51% HTML 0.13% CSS 0.11%
clean-architecture docker docker-compose eslint jest nodejs postgresql prisma react tailwindcss typescript zod express

donsaude-technical-challenge's Introduction

🇧🇷 Clique aqui para ler a versão em português

donsaude-technical-challenge

Technical challenge for DonSaúde

Setup

This section contains instructions on how to run this codebase.

Running with Docker

Requirements

  • Node.js
  • npm
  • Docker
  • Docker Compose

Steps

  1. Access the backend folder (donsaude-technical-challenge/backend)
  2. Install packages with npm ci
  3. Generate Prisma types with npx prisma generate
  4. Build the code with npm run build
  5. Go to the frontend folder (donsaude-technical-challenge/frontend)
  6. Install packages again with npm ci
  7. Go back to the project root folder (donsaude-technical-challenge)
  8. Start the containers with docker compose up (or docker-compose up for some cases)
  9. Wait until the frontend host address is exhibited in the console (probably http://localhost:5173)
  10. Access it through your navigator

Running without Docker

Requirements

  • Node.js
  • npm
  • An active PostgreSQL instance

Steps

  1. Access the backend folder (donsaude-technical-challenge/backend)
  2. Install packages with npm ci
  3. Generate Prisma types with npx prisma generate
  4. Create a .env file in the backend folder (see the environment variables below)
  5. Run Prisma migrations with npx prisma migrate deploy
  6. Build the code with npm run build
  7. Start the server with npm run start
  8. Open a new terminal and go to the frontend folder (donsaude-technical-challenge/frontend)
  9. Install packages again with npm ci
  10. Run the client with npm run dev
  11. Wait until the frontend host address is exhibited in the console (probably http://localhost:5173)
  12. Access it through your navigator

Backend side

Click here to read the README file specifically about the backend side.

Frontend side

Click here to read the README file specifically about the frontend side.

License

MIT

donsaude-technical-challenge's People

Contributors

nathanmbr 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.