Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jhonatanmedeiros/nlw-expert-14-polls

This project is a simple API for creating and managing polls. It was developed during the Next Level Week 14 event, promoted by Rocketseat.
https://github.com/jhonatanmedeiros/nlw-expert-14-polls

fastify javascript nlw nlw-expert node nodejs prisma prisma-orm rocketseat typescript

Last synced: about 21 hours ago
JSON representation

This project is a simple API for creating and managing polls. It was developed during the Next Level Week 14 event, promoted by Rocketseat.

Awesome Lists containing this project

README

        

# Next Level Week 14 - Poll API

This project is a simple API for creating and managing polls. It was developed during the Next Level Week 14 event, promoted by Rocketseat.

## 💻 Getting Started

## ⌨️ Development

### ☕ Environment
Create a `.env` file in the root of the project, using the `.env.example` file as a model.

```bash
cat .env.example >> .env
```

### 🚀 Install Dependencies
First, install the project dependencies.

```bash
npm install
```

### 🎲 Data Base Migrations
Run the migrations to create the database tables.
```bash
npm run migrate:run
```
For reset the database, run the command below.
```bash
npm run migrate:reset
```

### 🏗 Start the Server
Run the development server.
```bash
npm run dev
```

Run the production server.
```bash
npm run start
```

## 🛠 Technology Stack

- [Node 20](https://nodejs.org/)
- [Fastify](https://fastify.io/)
- [Prisma](https://prisma.io/)
- [TypeScript](https://www.typescriptlang.org/)

# 🤝 Contribute [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com)

If you are interested in participating in joint development, PR and Forks are welcome!

## 📜 License

[MIT](https://github.com/JhonatanMedeiros/nlw-expert-14-polls/blob/master/LICENSE) Copyright (c) 2024 - Jhonatan Hardt de Medeiros