Code Monkey home page Code Monkey logo

syky-app's Introduction

SETUP

This app can be run either in docker or directly with node.

To run the app with node, you need to have node v20.11.0 installed and a postgres instance running. First, modify the .env file to match your postgres instance configuration. Then you can run the following commands in the project directory:

npm install -g @nestjs/cli
npm install
npm start

To run the app with docker, you need to have docker and docker-compose installed. Then you can run the following command in the project directory:

docker-compose up

This will start the app and a postgres instance with docker.

The app will be accessible at http://localhost:3000.

ENDPOINTS

  • GET /events?categoryId={categoryId}&planetId={planetId} Returns a list of all events, optionally filtered by category id and planet id.
  • GET /events/:id Returns a single event by id.
  • POST /events Creates a new event. Request:
{
    "name": "Event name",
    "description": "Event description",
    "date": "2021-12-31T23:59:59.999Z",
    "categoryId": "category id",
    "planetId": "planet id",
    "coordinatesLat": "latitude of galactic coordinates",
    "coordinatesLon": "longitude of galactic coordinates"
}
  • PUT /events/:id Updates an event by id. Request:
{
    "name": "Event name",
    "description": "Event description",
    "date": "2021-12-31T23:59:59.999Z",
    "categoryId": "category id",
    "planetId": "planet id",
    "coordinatesLat": "latitude of galactic coordinates",
    "coordinatesLon": "longitude of galactic coordinates"
}
  • DELETE /events/:id Deletes an event by id.
  • GET /categories Returns a list of all categories.
  • GET /planets Returns a list of all planets.

Architecture

The backend app is built with NestJS, connected to a Postgres database.

The frontend app is built with React and NextJS.

Live deployment is done with Vercel for the frontend at https://syky-app-frontend.vercel.app/ and Heroku for the backend at https://syky-app-af5e9d2426db.herokuapp.com/. The live database is deployed in a Postgres instance in Vercel.

syky-app's People

Contributors

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