Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dadangdut33/personal-web-backend

Server code of my personal web
https://github.com/dadangdut33/personal-web-backend

cors express nodejs swagger typescript

Last synced: 3 months ago
JSON representation

Server code of my personal web

Awesome Lists containing this project

README

        


GitHub issues
GitHub pull requests


GitHub Repo stars
GitHub forks

Backend code of my personal web. Made using express. Take a look at [frontend](https://github.com/Dadangdut33/Personal-Web) for frontend code.

# Table of Contents

- [Table of Contents](#table-of-contents)
- [Getting started](#getting-started)
- [Set up your .env](#set-up-your-env)
- [Available Scripts](#available-scripts)
- [`pnpm start`](#pnpm-start)
- [`pnpm run dev:ts`](#pnpm-run-devts)
- [`pnpm run watch`](#pnpm-run-watch)
- [`pnpm run build`](#pnpm-run-build)
- [Run in ease while developing](#run-in-ease-while-developing)

# Getting started

Before contributing please consider reading some of the [docs](docs):

- [CONTRIBUTING.md](docs/CONTRIBUTING.md)
- [resources.md](docs/resources.md)

To start developing, first make sure that you have node installed. After that do `pnpm install` to install all the dependencies.

## Set up your .env

Don't forget to set up your .env file located in root folder. You can follow the template in the [.env.example](.env.example) file.

## Available Scripts

In the api directory, you can run:

### `pnpm start`

Runs the API in the production mode (Compiled).

### `pnpm run dev:ts`

Runs the API in the development mode (Not compiled).

### `pnpm run watch`

Watches and re-compiles on every changes made to the codebase.

### `pnpm run build`

Builds the API for production to the `dist` folder.

## Run in ease while developing

1. Method 1: Compile and watch for changes in the codebase
- open a new terminal and run `pnpm run watch`
- then open another terminal and run `pnpm run dev`
2. Method 2: Use nodemon
- run `pnpm run dev:ts`

**_this will get faster as it automatically re-compiles on the background_**