Coder Social home page Coder Social logo

cynomi-technical-test's Introduction

Cynomi Technical Test

Estimated Time Taken: 2-3 days

Prerequisites

Please install Docker if you haven't already done so on your local machine. This is required in order to spin up a Docker container of the PostgreSQL server necessary to persist local data.

Next in order to create the docker container run this command in the root of the repo:

docker-compose up -d

Next, inside the apps/server amend the .env.example file name to be .env. This env varaible is used to establish a connection between the server and the PostgreSQL DB.

Get Started (Local Development)

These commands should all be peformed in the root of the monorepo!

Install dependencies:

npm install

Populate the DB locally by seeding your DB with some dummy user data:

npm run reset

Note

This command can be used to drop all tables and revert your DB to a clean state.

Next to serve the client side application coupled with the Nest.js server, simply run this script:

npm run dev

You can access the application locally via http://localhost:5173/

View persisted data

If you wish to explore the DB tables to view newly persisted user data after submitting into the form, you can do so by running npx prisma studio in src/apps/server which should present a link to a GUI.

Alternatively you can also use a third party GUI to view the DB such as DBeaver

Demo

Here is a video of a working implementation:

CleanShot.2024-03-08.at.13.54.14.3.mp4

cynomi-technical-test's People

Contributors

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