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
npm install
-
Add a file named
.env
in thesrc
folder with the following information to prepare your environment -
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
Starts the server located in the built app.
Starts the Serialized API only.
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.
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
Makes a build of the react client for deployment.