paradoxinversion / serialized-api

A WIP serial fiction web platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

You will need MongoDB in order to develop and run this project. Make sure you have it installed or you will be very much out of luck, unless you want to make a Postgres-enabled fork.

Install Dependencies

  1. Install Dependencies npm install

  2. Add a file named .env in the src folder with the following information to prepare your environment

  3. Run the program with npm start. Note that concurrently will take care of starting the mongo server when developing. If you are running tests, make sure to manually start a mongod process.

DB_HOST=localhost
DB_NAME=serialized_api_dev
TOKEN_SECRET=<InsertYourSecret>
SESSION_SECRET=<InsertYourSecret>
API_PORT=3001

Developing the Project

start

start:dev

Starts the server located in the built app.

server-dev

Starts the Serialized API only.

client-dev

Starts the Serialized Client only.

Note that without the API, the functionality of the client will be severely limited. Therefore, it is always recommended to use start or start:dev for the simplest developing experience.

Building the Project

build:client-local

Makes a build of the react client. This is for local testing and not deployment. It is recommended not to use this directly, as it is included in build:all-local

build:all-deploy

Makes a build of the react client for deployment.

About

A WIP serial fiction web platform.


Languages

Language:JavaScript 100.0%