Skip to content

mayconsacht/dogs-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐶 Dogs server

This project provides an API for the Dogs platform, a social media network for dogs built purely for fun.

👷🏼‍♂️ What is inside?

This project uses the following technologies:

The API was built using Node.js and Typescript, with Kysely as the query builder to explore its capabilities. Additionally, the application is deployed on Vercel, where we not only use a database but also leverage Vercel Blob Storage for image uploads.

📦 Getting Started

This project is live at https://dogs.mayconsacht.com. You can access it through the website, but if you prefer to run it locally, I recommend setting up a PostgreSQL instance on Vercel, as you'll also need to create a Vercel Blob Storage to configure the token for image uploads.

Once you've created the database instance and the blob storage, follow these steps:

  1. Clone the repository:
git clone https://github.com/mayconsacht/dogs-server.git
cd dogs-server
  1. Create a .env.local file and configure the following variables:
POSTGRES_DATABASE=#your database
POSTGRES_HOST=#your database host
POSTGRES_PASSWORD=#your database password
POSTGRES_URL=#your database url
POSTGRES_USER=#your database user
BLOB_READ_WRITE_TOKEN=#your vercel blob token
JWT_SECRET=#any secret
CLIENT_URL=#http://localhost:3001 if you are running the client locally
NODE_ENV=development
  1. Install the dependencies:
yarn install
  1. Execute the migration to create the database tables:
yarn migrate

🚀 Quick Start

After installing the dependencies, start the development server with the following command:

yarn dev

To build the application for deployment, you can use:

yarn build

📄 License

This project is licensed under the MIT License.

About

This project provides an API for the Dogs platform, a social media network for dogs built purely for fun.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published