Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jhonatanmedeiros/nlw-expert-14-polls
- Owner: JhonatanMedeiros
- License: mit
- Created: 2024-02-06T16:37:32.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-08T00:35:10.000Z (about 1 year ago)
- Last Synced: 2024-04-14T03:53:59.947Z (10 months ago)
- Topics: fastify, javascript, nlw, nlw-expert, node, nodejs, prisma, prisma-orm, rocketseat, typescript
- Language: TypeScript
- Homepage:
- Size: 96.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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